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 -- Boris Kolpackov Code Synthesis Tools CC http://www.codesynthesis.com Open-Source, Cross-Platform C++ XML Data Binding
