
17 Sep
2006
17 Sep
'06
2:15 p.m.
On 9/17/06, Peter Dimov <pdimov@mmltd.net> wrote:
Damien Fisher wrote:
While this might only be slightly annoying, I can't help but think that the semantics of __declspec(dllexport) within a non-DLL are undefined at best.
__declspec(dllexport) is well-defined in an EXE, it declares the functions as exported. You can then link to them from the DLLs if you like. Its use in the serialization library is probably unintended, though.
Well that's my "learn-something-new-everyday" factoid for today :) (obvious in retrospect). It took me a bit of tinkering to realize why the .lib/.exp files were getting generated, so either fixing the problem, or putting a note in the FAQ explaining why this is needed, would be helpful.