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 Dennis Endt <de...@googlemail.com> on 2008/06/07 20:01:07 UTC
Unresolved Linking Error
Hi,
I`m porting my Code from MFC to Qt and now I`m getting unresolved
Linking Errors:
LNK2019
LNK2001
The Settings are the same as before. The lib is correct included.
What`s wrong?
Greetings
D.E.
RE: Unresolved Linking Error
Posted by "Sahoglu, Ozgur" <Oz...@intuit.com>.
Hi Dennis,
I am guessing that you're trying to link statically to the xerces-c++. In that case, build your application with the XML_LIBRARRY preprocessor define. Also make sure that the xerces-c++ library is defined in your library path.
Cheers,
-Ozgur Sahoglu
-----Original Message-----
From: Dennis Endt [mailto:dennis.endt@googlemail.com]
Sent: Saturday, June 07, 2008 2:02 PM
To: c-users@xerces.apache.org
Subject: Re: Unresolved Linking Error
David Bertoni schrieb:
> Dennis Endt wrote:
>> Hi,
>>
>> I`m porting my Code from MFC to Qt and now I`m getting unresolved
>> Linking Errors:
>>
>> LNK2019
>> LNK2001
>>
>> The Settings are the same as before. The lib is correct included.
>>
>> What`s wrong?
> Without information about the actual linker errors, who knows what's
> wrong? Please post the linker output.
>
> Dave
>
The whole linking Errors:
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) protected: __thiscall
xercesc_2_8::DOMErrorHandler::DOMErrorHandler(void)"
(__imp_??0DOMErrorHandler@xercesc_2_8@@IAE@XZ)" in Funktion ""public:
__thiscall XMLBaseErrorHandler::XMLBaseErrorHandler(void)"
(??0XMLBaseErrorHandler@@QAE@XZ)".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: virtual __thiscall
xercesc_2_8::DOMErrorHandler::~DOMErrorHandler(void)"
(__imp_??1DOMErrorHandler@xercesc_2_8@@UAE@XZ)" in Funktion ""public:
virtual __thiscall XMLBaseErrorHandler::~XMLBaseErrorHandler(void)"
(??1XMLBaseErrorHandler@@UAE@XZ)".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: static void __cdecl
xercesc_2_8::XMLPlatformUtils::Terminate(void)"
(__imp_?Terminate@XMLPlatformUtils@xercesc_2_8@@SAXXZ)" in Funktion
"__catch$?Init@XmlBase2Dialog@@QAE_NPBD@Z$0".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: static bool __cdecl
xercesc_2_8::DOMImplementation::loadDOMExceptionMsg(enum
xercesc_2_8::DOMException::ExceptionCode,unsigned short * const,unsigned
int)"
(__imp_?loadDOMExceptionMsg@DOMImplementation@xercesc_2_8@@SA_NW4ExceptionCode@DOMException@2@QAGI@Z)"
in Funktion "__catch$?Init@XmlBase2Dialog@@QAE_NPBD@Z$0".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgXercesUseCachedGrammarInParse"
(__imp_?fgXercesUseCachedGrammarInParse@XMLUni@xercesc_2_8@@2QBGB)".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgXercesSchemaExternalNoNameSpaceSchemaLocation"
(__imp_?fgXercesSchemaExternalNoNameSpaceSchemaLocation@XMLUni@xercesc_2_8@@2QBGB)".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgXercesSchemaFullChecking"
(__imp_?fgXercesSchemaFullChecking@XMLUni@xercesc_2_8@@2QBGB)".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgXercesSchema"
(__imp_?fgXercesSchema@XMLUni@xercesc_2_8@@2QBGB)".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMValidation"
(__imp_?fgDOMValidation@XMLUni@xercesc_2_8@@2QBGB)".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMNamespaces"
(__imp_?fgDOMNamespaces@XMLUni@xercesc_2_8@@2QBGB)".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static class xercesc_2_8::MemoryManager
* xercesc_2_8::XMLPlatformUtils::fgMemoryManager"
(__imp_?fgMemoryManager@XMLPlatformUtils@xercesc_2_8@@2PAVMemoryManager@2@A)".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes 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)"
in Funktion "__catch$?Init@XmlBase2Dialog@@QAE_NPBD@Z$0".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: static unsigned short *
__cdecl xercesc_2_8::XMLString::transcode(char const * const)"
(__imp_?transcode@XMLString@xercesc_2_8@@SAPAGQBD@Z)" in Funktion
"__catch$?Init@XmlBase2Dialog@@QAE_NPBD@Z$0".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: static void __cdecl
xercesc_2_8::XMLString::release(char * *)"
(__imp_?release@XMLString@xercesc_2_8@@SAXPAPAD@Z)" in Funktion
"__catch$?Init@XmlBase2Dialog@@QAE_NPBD@Z$0".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: static char * __cdecl
xercesc_2_8::XMLString::transcode(unsigned short const * const)"
(__imp_?transcode@XMLString@xercesc_2_8@@SAPADQBG@Z)" in Funktion
"__catch$?Init@XmlBase2Dialog@@QAE_NPBD@Z$0".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: unsigned short const *
__thiscall xercesc_2_8::XMLException::getMessage(void)const "
(__imp_?getMessage@XMLException@xercesc_2_8@@QBEPBGXZ)" in Funktion
"__catch$?Init@XmlBase2Dialog@@QAE_NPBD@Z$0".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: static void __cdecl
xercesc_2_8::XMLPlatformUtils::Initialize(char const * const,char const
* const,class xercesc_2_8::PanicHandler * const,class
xercesc_2_8::MemoryManager * const,bool)"
(__imp_?Initialize@XMLPlatformUtils@xercesc_2_8@@SAXQBD0QAVPanicHandler@2@QAVMemoryManager@2@_N@Z)"
in Funktion ""public: bool __thiscall XmlBase2Dialog::Init(char const
*)" (?Init@XmlBase2Dialog@@QAE_NPBD@Z)".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static char const * const
xercesc_2_8::XMLUni::fgXercescDefaultLocale"
(__imp_?fgXercescDefaultLocale@XMLUni@xercesc_2_8@@2QBDB)".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: static void __cdecl
xercesc_2_8::XMLString::release(unsigned short * *)"
(__imp_?release@XMLString@xercesc_2_8@@SAXPAPAG@Z)" in Funktion
""public: __thiscall XStr::~XStr(void)" (??1XStr@@QAE@XZ)".
Dennis
Re: Unresolved Linking Error
Posted by Dennis Endt <de...@googlemail.com>.
David Bertoni schrieb:
> Dennis Endt wrote:
>> Hi,
>>
>> I`m porting my Code from MFC to Qt and now I`m getting unresolved
>> Linking Errors:
>>
>> LNK2019
>> LNK2001
>>
>> The Settings are the same as before. The lib is correct included.
>>
>> What`s wrong?
> Without information about the actual linker errors, who knows what's
> wrong? Please post the linker output.
>
> Dave
>
The whole linking Errors:
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) protected: __thiscall
xercesc_2_8::DOMErrorHandler::DOMErrorHandler(void)"
(__imp_??0DOMErrorHandler@xercesc_2_8@@IAE@XZ)" in Funktion ""public:
__thiscall XMLBaseErrorHandler::XMLBaseErrorHandler(void)"
(??0XMLBaseErrorHandler@@QAE@XZ)".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: virtual __thiscall
xercesc_2_8::DOMErrorHandler::~DOMErrorHandler(void)"
(__imp_??1DOMErrorHandler@xercesc_2_8@@UAE@XZ)" in Funktion ""public:
virtual __thiscall XMLBaseErrorHandler::~XMLBaseErrorHandler(void)"
(??1XMLBaseErrorHandler@@UAE@XZ)".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: static void __cdecl
xercesc_2_8::XMLPlatformUtils::Terminate(void)"
(__imp_?Terminate@XMLPlatformUtils@xercesc_2_8@@SAXXZ)" in Funktion
"__catch$?Init@XmlBase2Dialog@@QAE_NPBD@Z$0".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: static bool __cdecl
xercesc_2_8::DOMImplementation::loadDOMExceptionMsg(enum
xercesc_2_8::DOMException::ExceptionCode,unsigned short * const,unsigned
int)"
(__imp_?loadDOMExceptionMsg@DOMImplementation@xercesc_2_8@@SA_NW4ExceptionCode@DOMException@2@QAGI@Z)"
in Funktion "__catch$?Init@XmlBase2Dialog@@QAE_NPBD@Z$0".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgXercesUseCachedGrammarInParse"
(__imp_?fgXercesUseCachedGrammarInParse@XMLUni@xercesc_2_8@@2QBGB)".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgXercesSchemaExternalNoNameSpaceSchemaLocation"
(__imp_?fgXercesSchemaExternalNoNameSpaceSchemaLocation@XMLUni@xercesc_2_8@@2QBGB)".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgXercesSchemaFullChecking"
(__imp_?fgXercesSchemaFullChecking@XMLUni@xercesc_2_8@@2QBGB)".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgXercesSchema"
(__imp_?fgXercesSchema@XMLUni@xercesc_2_8@@2QBGB)".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMValidation"
(__imp_?fgDOMValidation@XMLUni@xercesc_2_8@@2QBGB)".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static unsigned short const * const
xercesc_2_8::XMLUni::fgDOMNamespaces"
(__imp_?fgDOMNamespaces@XMLUni@xercesc_2_8@@2QBGB)".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static class xercesc_2_8::MemoryManager
* xercesc_2_8::XMLPlatformUtils::fgMemoryManager"
(__imp_?fgMemoryManager@XMLPlatformUtils@xercesc_2_8@@2PAVMemoryManager@2@A)".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes 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)"
in Funktion "__catch$?Init@XmlBase2Dialog@@QAE_NPBD@Z$0".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: static unsigned short *
__cdecl xercesc_2_8::XMLString::transcode(char const * const)"
(__imp_?transcode@XMLString@xercesc_2_8@@SAPAGQBD@Z)" in Funktion
"__catch$?Init@XmlBase2Dialog@@QAE_NPBD@Z$0".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: static void __cdecl
xercesc_2_8::XMLString::release(char * *)"
(__imp_?release@XMLString@xercesc_2_8@@SAXPAPAD@Z)" in Funktion
"__catch$?Init@XmlBase2Dialog@@QAE_NPBD@Z$0".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: static char * __cdecl
xercesc_2_8::XMLString::transcode(unsigned short const * const)"
(__imp_?transcode@XMLString@xercesc_2_8@@SAPADQBG@Z)" in Funktion
"__catch$?Init@XmlBase2Dialog@@QAE_NPBD@Z$0".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: unsigned short const *
__thiscall xercesc_2_8::XMLException::getMessage(void)const "
(__imp_?getMessage@XMLException@xercesc_2_8@@QBEPBGXZ)" in Funktion
"__catch$?Init@XmlBase2Dialog@@QAE_NPBD@Z$0".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: static void __cdecl
xercesc_2_8::XMLPlatformUtils::Initialize(char const * const,char const
* const,class xercesc_2_8::PanicHandler * const,class
xercesc_2_8::MemoryManager * const,bool)"
(__imp_?Initialize@XMLPlatformUtils@xercesc_2_8@@SAXQBD0QAVPanicHandler@2@QAVMemoryManager@2@_N@Z)"
in Funktion ""public: bool __thiscall XmlBase2Dialog::Init(char const
*)" (?Init@XmlBase2Dialog@@QAE_NPBD@Z)".
XmlBase2Dialog.obj : error LNK2001: Nicht aufgelöstes externes Symbol
""__declspec(dllimport) public: static char const * const
xercesc_2_8::XMLUni::fgXercescDefaultLocale"
(__imp_?fgXercescDefaultLocale@XMLUni@xercesc_2_8@@2QBDB)".
XmlBase2Dialog.obj : error LNK2019: Verweis auf nicht aufgelöstes
externes Symbol ""__declspec(dllimport) public: static void __cdecl
xercesc_2_8::XMLString::release(unsigned short * *)"
(__imp_?release@XMLString@xercesc_2_8@@SAXPAPAG@Z)" in Funktion
""public: __thiscall XStr::~XStr(void)" (??1XStr@@QAE@XZ)".
Dennis
Re: Unresolved Linking Error
Posted by David Bertoni <db...@apache.org>.
Dennis Endt wrote:
> Hi,
>
> I`m porting my Code from MFC to Qt and now I`m getting unresolved
> Linking Errors:
>
> LNK2019
> LNK2001
>
> The Settings are the same as before. The lib is correct included.
>
> What`s wrong?
Without information about the actual linker errors, who knows what's
wrong? Please post the linker output.
Dave