[xsd-users] Fw: Which library?

Bidski bidski at bigpond.net.au
Fri Feb 12 18:53:13 EST 2010


can anyone tell me why i am getting these errors? i recompiled my XML xshema file using the standard char-type (char) and these errors disappear, if i revert to the wchar_t version the errors return.

also, on a side note, is xerces-c_3D.lib not the debug version of the library? i ask because i am compiling my program in debug mobe and when linking with that library i receive the error "The application failed to initialize properly (0xc0150002). Click on OK to terminate the application." but linking to xerces-c_3.lib resolves that issue.

If you need to know, i am using MS Visual Studio 2010 Beta 2 on Windows 7 64-bit.

Bidski


From: Bidski 
Sent: Friday, February 12, 2010 10:08 PM
To: CodeSynthesis XSD 
Subject: Which library?


ok, the definitions for the three unresolved externals that i mentioned are in 

    #include <xsd/cxx/tree/bits/literals.hxx>

but including it in my project doesnt remove the errors, any thoughts on this?

i compiled my XML xchema file as follows     

    xsd cxx-tree --char-type wchar_t --hxx-suffix .h --cxx-suffix .cpp --generate-serialization inventory.xsd

the rest of my project is running in unicode so i figured i should follow suit with this part as well.



Bidski



From: Bidski 
Sent: Friday, February 12, 2010 9:52 PM
To: CodeSynthesis XSD 
Subject: Which library?


Hi all,

Can anyone tell me what library these unresolved externals are from?

Error 1 error LNK2019: unresolved external symbol "char const * __cdecl xsd::cxx::tree::bits::nan<char>(void)" (??$nan at D@bits at tree@cxx at xsd@@YAPBDXZ) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl xsd::cxx::tree::bits::insert<char>(struct xsd::cxx::tree::as_double<double> const &)" (??$insert at D@bits at tree@cxx at xsd@@YA?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@ABU?$as_double at N@123@@Z) Inventory.obj

Error 2 error LNK2019: unresolved external symbol "char const * __cdecl xsd::cxx::tree::bits::negative_inf<char>(void)" (??$negative_inf at D@bits at tree@cxx at xsd@@YAPBDXZ) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl xsd::cxx::tree::bits::insert<char>(struct xsd::cxx::tree::as_double<double> const &)" (??$insert at D@bits at tree@cxx at xsd@@YA?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@ABU?$as_double at N@123@@Z) Inventory.obj

Error 3 error LNK2019: unresolved external symbol "char const * __cdecl xsd::cxx::tree::bits::positive_inf<char>(void)" (??$positive_inf at D@bits at tree@cxx at xsd@@YAPBDXZ) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl xsd::cxx::tree::bits::insert<char>(struct xsd::cxx::tree::as_double<double> const &)" (??$insert at D@bits at tree@cxx at xsd@@YA?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@ABU?$as_double at N@123@@Z) Inventory.obj


Bidski


More information about the xsd-users mailing list