That works !
Thx a lot :)
-----Message d'origine-----
De : Alberto Massari [mailto:[email protected]]
Envoyé : mercredi 16 septembre 2009 11:18
À : [email protected]
Objet : Re: Xerces 2.8.0 Linking problem
Verify if your project has the same setting for the option /Zwchar_t
("treat wchar_t as a built-in type")
Alberto
CELLIER François wrote:
> 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_??0localfileformattar...@xercesc_2_8@@q...@qbgqavmemorymanager@1@@Z)
> referenced in function "private: bool __thiscall
> CParserInf::exporterFichierInf(class CFichierInf *)"
> (?exporterfichier...@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_?string...@xmlstring@xercesc_2_8@@sai...@z) referenced in function
> "class std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> > __cdecl
XercesUtils::xercesString2stdString(unsigned
> short const *)"
>
(?xercesstring2stdstr...@xercesutils@@ya?av?$basic_str...@du?$char_traits@D@
> std@@v?$alloca...@d@2@@std@@p...@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_?transc...@xmlstring@xercesc_2_8@@sapag...@z) referenced in
function
> "unsigned short * __cdecl XercesUtils::stdString2xercesString(class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> >)"
>
(?stdstring2xercesstr...@xercesutils@@yapagv?$basic_str...@du?$char_traits@D
> @std@@v?$alloca...@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
>
>
>
>
>
>
>