Boris Kolpackov wrote:
Hi Michael,
Michael Hill <[EMAIL PROTECTED]> writes:
When I go to link a program, e.g. CreateDOMDocument from the samples tree:
g++ -I../../include -L../../lib CreateDOMDocument.cpp -o test -lxerces-c
undefined reference to
`_imp___ZN11xercesc_2_86XMLUni22fgXercescDefaultLocaleE'
Add -DXML_LIBRARY to the g++ command line above. Without this macro
Xerces-C++ headers will mark all symbols as dllimport and since you
have build Xerces-C++ as static library, things won't link. In this
regard, Mingw is the same is VC++ builds where you need to define
XML_LIBRARY while compiling client code in order to link statically.
Boris
Ah-HAH!!!
Thank you thank you thank you: It now seems quite likely that I won't
have to go to the psych ward (today).
So, as a matter of curiosity, how did I manage to miss the text that
says it? I thought I studied pretty hard, because I hate it on my own
tech lists when someone writes without doing their homework first.
Thanks!
Hill