You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by mg444 <gr...@saic.com> on 2009/09/18 17:51:16 UTC

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_?transcode@XMLString@xercesc_2_8@@SAPADQBG@Z)
2>XMLInterface.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMDatatypeNormalization"
(__imp_?fgDOMDatatypeNormalization@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_?fgDOMValidation@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_?fgDOMValidateIfSchema@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_?fgXercesSchemaFullChecking@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_?fgXercesSchema@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_?fgDOMNamespaces@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_?getDOMImplementation@DOMImplementationRegistry@xercesc_2_8@@SAPAVDOMImplementation@2@PBG@Z)
referenced in function __catch$??0XMLInterface@@QAE@XZ$0
2>XMLInterface.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMWRTBOM"
(__imp_?fgDOMWRTBOM@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_?fgDOMWRTFormatPrettyPrint@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_?fgDOMWRTDiscardDefaultContent@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_?fgDOMWRTSplitCdataSections@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_?transcode@XMLString@xercesc_2_8@@SA_NQBDQAGIQAVMemoryManager@2@@Z)
referenced in function "public: bool __thiscall XMLInterface::save(char *)"
(?save@XMLInterface@@QAE_NPAD@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.


RE: Windows only linker issues with xerces 2.8

Posted by John Lilley <jl...@datalever.com>.
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:groetzm@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_?transcode@XMLString@xercesc_2_8@@SAPADQBG@Z)
2>XMLInterface.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMDatatypeNormalization"
(__imp_?fgDOMDatatypeNormalization@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_?fgDOMValidation@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_?fgDOMValidateIfSchema@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_?fgXercesSchemaFullChecking@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_?fgXercesSchema@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_?fgDOMNamespaces@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_?getDOMImplementation@DOMImplementationRegistry@xercesc_2_8@@SAPAVDOMImplementation@2@PBG@Z)
referenced in function __catch$??0XMLInterface@@QAE@XZ$0
2>XMLInterface.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMWRTBOM"
(__imp_?fgDOMWRTBOM@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_?fgDOMWRTFormatPrettyPrint@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_?fgDOMWRTDiscardDefaultContent@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_?fgDOMWRTSplitCdataSections@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_?transcode@XMLString@xercesc_2_8@@SA_NQBDQAGIQAVMemoryManager@2@@Z)
referenced in function "public: bool __thiscall XMLInterface::save(char *)"
(?save@XMLInterface@@QAE_NPAD@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.