[Expat-discuss] Linking

Karl Waclawek karl at waclawek.net
Fri Sep 1 15:29:12 CEST 2006


Tom Younger wrote:
> Hi there.
>
> I have a question about linking.
>
> I would like to link the Expat library statically.  When I link to the
> Linux libraries, this happens properly, however when I link my project
> under Windows, I can only get the program to work if I include the path to
> the libexpat.dll in my system path.
>
> Even though I include StaticLibs\libexpatMT.lib in my link command, without
> Libs\libexpat.lib, it can't resolve some symbols.  It appears as though
> libexpat.lib loads the DLL at run-time.
For static linking you need to define a specific symbol.
If I remember correctly it is XML_STATIC.

Karl


More information about the Expat-discuss mailing list