AW: [xsd-users] CodeSynthesis XSD - LNK1107 compiler error in
relation to Xerces
Waldispuehl, Dominik
dominik.waldispuehl at roche.com
Tue Jun 4 03:47:44 EDT 2013
Hello
Thanks for the fast response. "Treat WChar_t as Built in Type" was set to "No", set it to "Yes(/c:wchar_t)" now and removed the xerces-dll from the additional dependencies. Now I get the unresolved symbols that I've mentioned:
"error LNK1120: 31 unresolved externals" followed by these:
Error 9 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::SchemaSymbols::fgURI_XSI" (__imp_?fgURI_XSI at SchemaSymbols@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 7 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::SchemaSymbols::fgXSI_NONAMESPACESCHEMALOCACTION" (__imp_?fgXSI_NONAMESPACESCHEMALOCACTION at SchemaSymbols@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 8 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::SchemaSymbols::fgXSI_SCHEMALOCACTION" (__imp_?fgXSI_SCHEMALOCACTION at SchemaSymbols@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 26 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgDOMComments" (__imp_?fgDOMComments at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 25 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgDOMDatatypeNormalization" (__imp_?fgDOMDatatypeNormalization at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 22 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgDOMElementContentWhitespace" (__imp_?fgDOMElementContentWhitespace at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 24 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgDOMEntities" (__imp_?fgDOMEntities at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 13 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgDOMErrorHandler" (__imp_?fgDOMErrorHandler at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 23 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgDOMNamespaces" (__imp_?fgDOMNamespaces at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 21 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgDOMValidate" (__imp_?fgDOMValidate at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 31 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgDOMWRTDiscardDefaultContent" (__imp_?fgDOMWRTDiscardDefaultContent at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 30 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgDOMWRTFormatPrettyPrint" (__imp_?fgDOMWRTFormatPrettyPrint at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 29 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgDOMXMLDeclaration" (__imp_?fgDOMXMLDeclaration at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 18 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgXercesHandleMultipleImports" (__imp_?fgXercesHandleMultipleImports at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 14 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgXercesLoadSchema" (__imp_?fgXercesLoadSchema at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 20 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgXercesSchema" (__imp_?fgXercesSchema at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 15 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgXercesSchemaExternalNoNameSpaceSchemaLocation" (__imp_?fgXercesSchemaExternalNoNameSpaceSchemaLocation at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 16 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgXercesSchemaExternalSchemaLocation" (__imp_?fgXercesSchemaExternalSchemaLocation at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 19 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgXercesSchemaFullChecking" (__imp_?fgXercesSchemaFullChecking at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 17 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgXercesUserAdoptsDOMDocument" (__imp_?fgXercesUserAdoptsDOMDocument at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 11 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static unsigned short const * const xercesc_3_1::XMLUni::fgXMLNSURIName" (__imp_?fgXMLNSURIName at XMLUni@xercesc_3_1@@2QBGB) ....\MPRawDataSchema.obj
Error 1 error LNK2001: unresolved external symbol "public: virtual unsigned short const * __thiscall xercesc_3_1::InputSource::getEncoding(void)const " (?getEncoding at InputSource@xercesc_3_1@@UBEPBGXZ) ....\MPRawDataSchema.obj
Error 2 error LNK2001: unresolved external symbol "public: virtual unsigned short const * __thiscall xercesc_3_1::InputSource::getPublicId(void)const " (?getPublicId at InputSource@xercesc_3_1@@UBEPBGXZ) ....\MPRawDataSchema.obj
Error 3 error LNK2001: unresolved external symbol "public: virtual unsigned short const * __thiscall xercesc_3_1::InputSource::getSystemId(void)const " (?getSystemId at InputSource@xercesc_3_1@@UBEPBGXZ) ....\MPRawDataSchema.obj
Error 4 error LNK2001: unresolved external symbol "public: virtual void __thiscall xercesc_3_1::InputSource::setEncoding(unsigned short const * const)" (?setEncoding at InputSource@xercesc_3_1@@UAEXQBG at Z) ....\MPRawDataSchema.obj
Error 5 error LNK2001: unresolved external symbol "public: virtual void __thiscall xercesc_3_1::InputSource::setPublicId(unsigned short const * const)" (?setPublicId at InputSource@xercesc_3_1@@UAEXQBG at Z) ....\MPRawDataSchema.obj
Error 6 error LNK2001: unresolved external symbol "public: virtual void __thiscall xercesc_3_1::InputSource::setSystemId(unsigned short const * const)" (?setSystemId at InputSource@xercesc_3_1@@UAEXQBG at Z) ....\MPRawDataSchema.obj
Error 28 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: __thiscall xercesc_3_1::InputSource::InputSource(unsigned short const * const,class xercesc_3_1::MemoryManager * const)" (__imp_??0InputSource at xercesc_3_1@@IAE at QBGQAVMemoryManager@1@@Z) referenced in function "public: __thiscall xsd::cxx::xml::sax::std_input_source::std_input_source<char>(class std::basic_istream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$?0D at std_input_source@sax at xml@cxx at xsd@@QAE at AAV?$basic_istream at DU?$char_traits at D@std@@@std@@ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@6@@Z) ....\MPRawDataSchema.obj
Error 10 error LNK2019: unresolved external symbol "__declspec(dllimport) public: static bool __cdecl xercesc_3_1::XMLString::equals(unsigned short const *,unsigned short const *)" (__imp_?equals at XMLString@xercesc_3_1@@SA_NPBG0 at Z) referenced in function "void __cdecl xsd::cxx::xml::dom::clear<char>(class xercesc_3_1::DOMElement &)" (??$clear at D@dom at xml@cxx at xsd@@YAXAAVDOMElement at xercesc_3_1@@@Z) ....\MPRawDataSchema.obj
Error 27 error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class xercesc_3_1::DOMImplementation * __cdecl xercesc_3_1::DOMImplementationRegistry::getDOMImplementation(unsigned short const *)" (__imp_?getDOMImplementation at DOMImplementationRegistry@xercesc_3_1@@SAPAVDOMImplementation at 2@PBG at Z) referenced in function "struct xsd::cxx::xml::dom::auto_ptr<class xercesc_3_1::DOMDocument> __cdecl xsd::cxx::xml::dom::parse<char>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class xercesc_3_1::DOMErrorHandler &,class xsd::cxx::xml::properties<char> const &,unsigned long)" (??$parse at D@dom at xml@cxx at xsd@@YA?AU?$auto_ptr at VDOMDocument@xercesc_3_1@@@0123 at ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@AAVDOMErrorHandler at xercesc_3_1@@ABV?$properties at D@123 at K@Z) ....\MPRawDataSchema.obj
Error 12 error LNK2019: unresolved external symbol "__declspec(dllimport) public: static unsigned long __cdecl xercesc_3_1::XMLString::stringLen(unsigned short const * const)" (__imp_?stringLen at XMLString@xercesc_3_1@@SAKQBG at Z) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl xsd::cxx::xml::transcode<char>(unsignedshort const *)" (??$transcode at D@xml at cxx@xsd@@YA?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@PBG at Z) ....\MPRawDataSchema.obj
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Regards
Dominik W.
-----Ursprüngliche Nachricht-----
Von: Boris Kolpackov [mailto:boris at codesynthesis.com]
Gesendet: Dienstag, 4. Juni 2013 09:32
An: Waldispuehl, Dominik {DFRH~Rotkreuz-Tro}
Cc: xsd-users at codesynthesis.com
Betreff: Re: [xsd-users] CodeSynthesis XSD - LNK1107 compiler error in relation to Xerces
Hi Dominik,
Waldispuehl, Dominik <dominik.waldispuehl at roche.com> writes:
> I'm using CodeSynthesis XSD but I'm not very happy about it, from one
> problem I always go on to the next...
That's not good.
> Now I've got a problem with the compiling process (Visual Studio with
> QT-integration, QT-Console-Application that uses generated .cxx / .hxx
> files), I've added all lib/bin/include directories to the
> VC++-Directories in Visual Studio 10 and also put the
> "xerces-c_3D.lib" to the
> Linker->Additional Dependencies. If I do that, I get unresolved symbols.
It is always a good idea to show the exact error message that you are getting.
My guess here would be that your project is configured to not treat wchar_t as a native type while Xerces-C++ was built with that option turned on. Can you go to your Project settings and check that (I believe it should be in the C++ Settings, Language tab).
> Every solution I found on Google was to link the .lib file instead of
> the .dll file, but that hasn't worked!
Yes, you should only link the .lib file (called import library).
Boris
More information about the xsd-users
mailing list