Re: Linking

Karl Waclawek <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.