You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Jimmy Yu <jy...@verizon.net> on 2004/03/03 18:08:23 UTC

unresolved symbols (external)

Hello,

My previous 2 postings didn't get through (At least they weren't 
on the web site.) If this is a repeat for you, please forgive me.

I am using VC++ 6.0, before I merged my code into the main project,
everything was fine independently. However, now I am getting these
errors below. If anyone can shed any light on the matter, it would
be appreciated...

--------------------Configuration: Engine - Win32 Debug--------------------
Linking...
   Creating library Debug/Engine.lib and object Debug/Engine.exp
Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __stdcall xercesc_2_5::XMemory::operator delete(void *)" (__imp_??3XMemory@xercesc_2_5@@SGXPAX@Z)
Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void * __stdcall xercesc_2_5::XMemory::operator new(unsigned int)" (__imp_??2XMemory@xercesc_2_5@@SGPAXI@Z)
Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __stdcall xercesc_2_5::XMLString::release(char * *)" (__imp_?release@XMLString@xercesc_2_5@@SGXPAPAD@Z)
Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static char * __stdcall xercesc_2_5::XMLString::transcode(unsigned short const * const)" (__imp_?transcode@XMLString@xercesc_2_5@@SGPADQBG@Z)
Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol "public: class ostream & __thiscall ostream::operator<<(int)" (??6ostream@@QAEAAV0@H@Z)
Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol "public: class ostream & __thiscall ostream::operator<<(char const *)" (??6ostream@@QAEAAV0@PBD@Z)
Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol "class ostream_withassign  cout" (?cout@@3Vostream_withassign@@A)
Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol "public: class ostream & __thiscall ostream::operator<<(unsigned char)" (??6ostream@@QAEAAV0@E@Z)
Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol "public: class ostream & __thiscall ostream::flush(void)" (?flush@ostream@@QAEAAV1@XZ)
Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class xercesc_2_5::DOMImplementation * __stdcall xercesc_2_5::DOMImplementationRegistry::getDOMImplementation(unsigned short const *)" (
__imp_?getDOMImplementation@DOMImplementationRegistry@xercesc_2_5@@SGPAVDOMImplementation@2@PBG@Z)
Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static void __stdcall xercesc_2_5::XMLPlatformUtils::Initialize(char const * const,char const * const,class xercesc_2_5::PanicHandler * const,c
lass xercesc_2_5::MemoryManager * const)" (__imp_?Initialize@XMLPlatformUtils@xercesc_2_5@@SGXQBD0QAVPanicHandler@2@QAVMemoryManager@2@@Z)
Debug/Engine.dll : fatal error LNK1120: 11 unresolved externals
Error executing link.exe.

Install.exe - 12 error(s), 0 warning(s)

Sincerely
-- Jimmy Yu


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: unresolved symbols (external)

Posted by Alberto Massari <am...@progress.com>.
At 09.08 03/03/2004 -0800, Jimmy Yu wrote:
>Hello,
>
>My previous 2 postings didn't get through (At least they weren't
>on the web site.) If this is a repeat for you, please forgive me.
>
>I am using VC++ 6.0, before I merged my code into the main project,
>everything was fine independently. However, now I am getting these
>errors below. If anyone can shed any light on the matter, it would
>be appreciated...

 From what I can see from the log, you built a static library using Xerces, 
and you are now building a DLL named "Engine" linking against this static 
library.
In this case, you need to link Engine against Xerces too.

Alberto


>--------------------Configuration: Engine - Win32 Debug--------------------
>Linking...
>    Creating library Debug/Engine.lib and object Debug/Engine.exp
>Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol 
>"__declspec(dllimport) public: static void __stdcall 
>xercesc_2_5::XMemory::operator delete(void *)" 
>(__imp_??3XMemory@xercesc_2_5@@SGXPAX@Z)
>Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol 
>"__declspec(dllimport) public: static void * __stdcall 
>xercesc_2_5::XMemory::operator new(unsigned int)" 
>(__imp_??2XMemory@xercesc_2_5@@SGPAXI@Z)
>Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol 
>"__declspec(dllimport) public: static void __stdcall 
>xercesc_2_5::XMLString::release(char * *)" 
>(__imp_?release@XMLString@xercesc_2_5@@SGXPAPAD@Z)
>Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol 
>"__declspec(dllimport) public: static char * __stdcall 
>xercesc_2_5::XMLString::transcode(unsigned short const * const)" 
>(__imp_?transcode@XMLString@xercesc_2_5@@SGPADQBG@Z)
>Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol 
>"public: class ostream & __thiscall ostream::operator<<(int)" 
>(??6ostream@@QAEAAV0@H@Z)
>Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol 
>"public: class ostream & __thiscall ostream::operator<<(char const *)" 
>(??6ostream@@QAEAAV0@PBD@Z)
>Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol 
>"class ostream_withassign  cout" (?cout@@3Vostream_withassign@@A)
>Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol 
>"public: class ostream & __thiscall ostream::operator<<(unsigned char)" 
>(??6ostream@@QAEAAV0@E@Z)
>Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol 
>"public: class ostream & __thiscall ostream::flush(void)" 
>(?flush@ostream@@QAEAAV1@XZ)
>Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol 
>"__declspec(dllimport) public: static class xercesc_2_5::DOMImplementation 
>* __stdcall 
>xercesc_2_5::DOMImplementationRegistry::getDOMImplementation(unsigned 
>short const *)" (
>__imp_?getDOMImplementation@DOMImplementationRegistry@xercesc_2_5@@SGPAVDOMImplementation@2@PBG@Z)
>Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol 
>"__declspec(dllimport) public: static void __stdcall 
>xercesc_2_5::XMLPlatformUtils::Initialize(char const * const,char const * 
>const,class xercesc_2_5::PanicHandler * const,c
>lass xercesc_2_5::MemoryManager * const)" 
>(__imp_?Initialize@XMLPlatformUtils@xercesc_2_5@@SGXQBD0QAVPanicHandler@2@QAVMemoryManager@2@@Z)
>Debug/Engine.dll : fatal error LNK1120: 11 unresolved externals
>Error executing link.exe.
>
>Install.exe - 12 error(s), 0 warning(s)
>
>Sincerely
>-- Jimmy Yu
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org