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 <[EMAIL PROTECTED]>
> Date: 2004/03/03 Wed AM 09:15:32 PST
> To: [EMAIL PROTECTED]
> 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 *)"
> >([EMAIL PROTECTED]@@[EMAIL PROTECTED])
> >Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol
> >"__declspec(dllimport) public: static void * __stdcall
> >xercesc_2_5::XMemory::operator new(unsigned int)"
> >([EMAIL PROTECTED]@@[EMAIL PROTECTED])
> >Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol
> >"__declspec(dllimport) public: static void __stdcall
> >xercesc_2_5::XMLString::release(char * *)"
> >([EMAIL PROTECTED]@xercesc_2_5@@[EMAIL PROTECTED])
> >Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol
> >"__declspec(dllimport) public: static char * __stdcall
> >xercesc_2_5::XMLString::transcode(unsigned short const * const)"
> >([EMAIL PROTECTED]@xercesc_2_5@@[EMAIL PROTECTED])
> >Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol
> >"public: class ostream & __thiscall ostream::operator<<(int)"
> >(??6ostream@@[EMAIL PROTECTED]@Z)
> >Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol
> >"public: class ostream & __thiscall ostream::operator<<(char const *)"
> >(??6ostream@@[EMAIL PROTECTED]@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@@[EMAIL PROTECTED]@Z)
> >Lib.lib(ConstraintChecker.obj) : error LNK2001: unresolved external symbol
> >"public: class ostream & __thiscall ostream::flush(void)"
> >([EMAIL PROTECTED]@@[EMAIL PROTECTED])
> >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 *)" (
> >[EMAIL PROTECTED]@xercesc_2_5@@SGPA [EMAIL PROTECTED]@[EMAIL PROTECTED])
> >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)"
> >([EMAIL PROTECTED]@xercesc_2_5@@SGXQBD0QAVPanicHandler @[EMAIL PROTECTED]@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: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to