You should make sure that the /Zc:wchar_t option is set the same in your Xerces 
build as in your application build.

john

-----Original Message-----
From: mg444 [mailto:groe...@saic.com] 
Sent: Friday, September 18, 2009 9:51 AM
To: c-users@xerces.apache.org
Subject: Windows only linker issues with xerces 2.8


Hello -

I'm using Visual Studio 2005 and have the following linker errors:

-----------
XMLInterface.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static char * __cdecl
xercesc_2_8::XMLString::transcode(unsigned short const * const)"
(__imp_?transc...@xmlstring@xercesc_2_8@@sapad...@z)
2>XMLInterface.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMDatatypeNormalization"
(__imp_?fgdomdatatypenormalizat...@xmluni@xercesc_2_8@@2QBGB)
2>XMLInterface.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMValidation"
(__imp_?fgdomvalidat...@xmluni@xercesc_2_8@@2QBGB)
2>XMLInterface.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMValidateIfSchema"
(__imp_?fgdomvalidateifsch...@xmluni@xercesc_2_8@@2QBGB)
2>XMLInterface.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgXercesSchemaFullChecking"
(__imp_?fgxercesschemafullcheck...@xmluni@xercesc_2_8@@2QBGB)
2>XMLInterface.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgXercesSchema"
(__imp_?fgxercessch...@xmluni@xercesc_2_8@@2QBGB)
2>XMLInterface.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMNamespaces"
(__imp_?fgdomnamespa...@xmluni@xercesc_2_8@@2QBGB)
2>XMLInterface.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class xercesc_2_8::DOMImplementation *
__cdecl
xercesc_2_8::DOMImplementationRegistry::getDOMImplementation(unsigned short
const *)"
(__imp_?getdomimplementat...@domimplementationregistry@xercesc_2_8@@sapavdomimplementat...@2@p...@z)
referenced in function __catch$??0XMLInterface@@q...@xz$0
2>XMLInterface.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMWRTBOM"
(__imp_?fgdomwrt...@xmluni@xercesc_2_8@@2QBGB)
2>XMLInterface.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMWRTFormatPrettyPrint"
(__imp_?fgdomwrtformatprettypr...@xmluni@xercesc_2_8@@2QBGB)
2>XMLInterface.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMWRTDiscardDefaultContent"
(__imp_?fgdomwrtdiscarddefaultcont...@xmluni@xercesc_2_8@@2QBGB)
2>XMLInterface.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMWRTSplitCdataSections"
(__imp_?fgdomwrtsplitcdatasecti...@xmluni@xercesc_2_8@@2QBGB)
2>XMLInterface.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static bool __cdecl
xercesc_2_8::XMLString::transcode(char const * const,unsigned short *
const,unsigned int,class xercesc_2_8::MemoryManager * const)"
(__imp_?transc...@xmlstring@xercesc_2_8@@sa_nqbdqagiqavmemorymana...@2@@Z)
referenced in function "public: bool __thiscall XMLInterface::save(char *)"
(?s...@xmlinterface@@qae_n...@z)
-----------
I was able to build the libs with no issues and I verified they listed in my
project dependencies. I'm only seeing these linker errors on Windows. I was
able to integrate the xerces libs into my project on x86 Solaris with no
issues.

Any help would be appreciated.

Thanks, Mike



-- 
View this message in context: 
http://www.nabble.com/Windows-only-linker-issues-with-xerces-2.8-tp25511080p25511080.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.

Reply via email to