xerces-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CELLIER Fran├žois <F...@teamlog.com>
Subject Xerces 2.8.0 Linking problem
Date Wed, 16 Sep 2009 08:35:23 GMT
Hi,

 

I am developing with VC2005. I wrote a library that uses xerces 2.8.0. This
lib compiles correctly. However, when I use this library in a main I have
the following errors :

 

1>XML.lib(CParserInf.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
xercesc_2_8::LocalFileFormatTarget::LocalFileFormatTarget(unsigned short
const * const,class xercesc_2_8::MemoryManager * const)"
(__imp_??0LocalFileFormatTarget@xercesc_2_8@@QAE@QBGQAVMemoryManager@1@@Z)
referenced in function "private: bool __thiscall
CParserInf::exporterFichierInf(class CFichierInf *)"
(?exporterFichierInf@CParserInf@@AAE_NPAVCFichierInf@@@Z)

1>XML.lib(CXercesUtils.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static unsigned int __cdecl
xercesc_2_8::XMLString::stringLen(unsigned short const * const)"
(__imp_?stringLen@XMLString@xercesc_2_8@@SAIQBG@Z) referenced in function
"class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __cdecl XercesUtils::xercesString2stdString(unsigned
short const *)"
(?xercesString2stdString@XercesUtils@@YA?AV?$basic_string@DU?$char_traits@D@
std@@V?$allocator@D@2@@std@@PBG@Z)

1>XML.lib(CXercesUtils.obj) : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static unsigned short * __cdecl
xercesc_2_8::XMLString::transcode(char const * const)"
(__imp_?transcode@XMLString@xercesc_2_8@@SAPAGQBD@Z) referenced in function
"unsigned short * __cdecl XercesUtils::stdString2xercesString(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >)"
(?stdString2xercesString@XercesUtils@@YAPAGV?$basic_string@DU?$char_traits@D
@std@@V?$allocator@D@2@@std@@@Z)

 

Of course I added xerces-c_2D.lib into the link path and had no error with
that. I thought to a lib problem so I recompiled myself the xerces lib with
the provided sln (everything went correctly) but I still have the same
problem. 

 

Any Ideas about this ?

 

Thx

Fran├žois

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message