xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto Massari <amass...@progress.com>
Subject Re: Re: unresolved symbols (external)
Date Wed, 03 Mar 2004 17:42:17 GMT
At 09.34 03/03/2004 -0800, Jimmy Yu wrote:
>Dear Alberto,
>
>In the setting for the whole project, I chose 'Engine'
>and under the link tab, I have put in the correct path
>to where the debug and release of xerces-c_2D.lib and
>xerces-c_2.lib and the corresponding dll files are in
>the same directory. (Is this what you meant by linking?
>I am kinda new to VC++. I am more familiar with Java, I
>was thrown into this project in the last minute.) The
>linking errors occur both with 2.4 & 2.5, which I just
>downloaded yesterday and rebuilt.

Linking is the process of resolving all the references in an executable 
(Java does this when you execute a class); in C++ this is done as the last 
step of the compilation. So, you must give the linker the full name of the 
library file, or the name of the library and the path where it is located.
In the "Link" tab, choose the "input" category and then add 
"xerces-c_2D.lib" in the "Object/library modules" and the directory where 
that file is in the "Additional library path".
Keep also in mind that that directory will have to be in the PATH when you 
execute the final executable file.

Alberto


>If this is not what you meant, can you give me further
>pointers on this matter?
>
>Sincerely & Humbly yours,
>-- Jimmy Yu
>
> >
> > From: Alberto Massari <amassari@progress.com>
> > Date: 2004/03/03 Wed AM 09:15:32 PST
> > To: xerces-c-dev@xml.apache.org
> > Subject: Re: unresolved symbols (external)
> >
> > 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@@SGPA 
> VDOMImplementation@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
> >
> >



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


Mime
View raw message