Greetings,

I have downloaded and compiled xerces 3.0.1.  When I do this, it creates a 
xerces-c_3.lib (3.0MB) and a xerces-c_3_0.dll (2.3MB).

If I compile my app (MSVC++ 6) using the DLL, then everything works fine.  It 
compiles and runs correctly.



I am trying to use the static version, so I don't have to have the DLL present 
when I run my app.

When I try this, it still says I need the DLL at runtime.

I then looked online, and saw it may be necessary to declare 
XERCES_STATIC_LIBRARY as a preprocessor definition, which I did.

Unfortunately, when I do that, the project no longer compiles...I then get the 
following errors at link time:

Help?


Linking...

parse_xml.obj : error LNK2001: unresolved external symbol "public: static 
unsigned short const * const 
xercesc_3_0::XMLUni::fgXercesUserAdoptsDOMDocument" 
(?fgxercesuseradoptsdomdocum...@xmluni@xercesc_3_0@@2QBGB)
parse_xml.obj : error LNK2001: unresolved external symbol "public: static 
unsigned short const * const xercesc_3_0::XMLUni::fgXercesLoadSchema" 
(?fgxercesloadsch...@xmluni@xercesc_3_0@@2QBGB)
parse_xml.obj : error LNK2001: unresolved external symbol "public: static 
unsigned short const * const 
xercesc_3_0::XMLUni::fgXercesUseCachedGrammarInParse" 
(?fgxercesusecachedgrammarinpa...@xmluni@xercesc_3_0@@2QBGB)
parse_xml.obj : error LNK2001: unresolved external symbol "public: static 
unsigned short const * const xercesc_3_0::XMLUni::fgXercesSchemaFullChecking" 
(?fgxercesschemafullcheck...@xmluni@xercesc_3_0@@2QBGB)
parse_xml.obj : error LNK2001: unresolved external symbol "public: static 
unsigned short const * const xercesc_3_0::XMLUni::fgXercesSchema" 
(?fgxercessch...@xmluni@xercesc_3_0@@2QBGB)
parse_xml.obj : error LNK2001: unresolved external symbol "public: static 
unsigned short const * const xercesc_3_0::XMLUni::fgDOMValidate" 
(?fgdomvalid...@xmluni@xercesc_3_0@@2QBGB)
parse_xml.obj : error LNK2001: unresolved external symbol "public: static 
unsigned short const * const 
xercesc_3_0::XMLUni::fgDOMElementContentWhitespace" 
(?fgdomelementcontentwhitesp...@xmluni@xercesc_3_0@@2QBGB)
parse_xml.obj : error LNK2001: unresolved external symbol "public: static 
unsigned short const * const xercesc_3_0::XMLUni::fgDOMNamespaces" 
(?fgdomnamespa...@xmluni@xercesc_3_0@@2QBGB)
parse_xml.obj : error LNK2001: unresolved external symbol "public: static 
unsigned short const * const xercesc_3_0::XMLUni::fgDOMEntities" 
(?fgdomentit...@xmluni@xercesc_3_0@@2QBGB)
parse_xml.obj : error LNK2001: unresolved external symbol "public: static 
unsigned short const * const xercesc_3_0::XMLUni::fgDOMDatatypeNormalization" 
(?fgdomdatatypenormalizat...@xmluni@xercesc_3_0@@2QBGB)
parse_xml.obj : error LNK2001: unresolved external symbol "public: static 
unsigned short const * const xercesc_3_0::XMLUni::fgDOMComments" 
(?fgdomcomme...@xmluni@xercesc_3_0@@2QBGB)
parse_xml.obj : error LNK2001: unresolved external symbol "public: static class 
xercesc_3_0::MemoryManager * xercesc_3_0::XMLPlatformUtils::fgMemoryManager" 
(?fgmemorymana...@xmlplatformutils@xercesc_3_0@@2pavmemorymana...@2@A)
parse_xml.obj : error LNK2001: unresolved external symbol "public: static 
unsigned short const * const xercesc_3_0::XMLUni::fgDOMErrorHandler" 
(?fgdomerrorhand...@xmluni@xercesc_3_0@@2QBGB)
parse_xml.obj : error LNK2001: unresolved external symbol "public: static char 
const * const xercesc_3_0::XMLUni::fgXercescDefaultLocale" 
(?fgxercescdefaultloc...@xmluni@xercesc_3_0@@2QBDB)

Reply via email to