Dear Alberto,
The information were all already in the link tab, further, the real interesting thing is that only the XMemory.cpp file and XString.cpp file's function calls were unresolved. I have included the 2 function calls that is in my program...
No, you have other missing external symbols (from XMLPlatformUtils, DOMImplementationRegistry, and the C++ iostream library); it looks like your setting is not being used. Can you paste the complete lines you have in the "Object/library modules" and "Additional library path" settings?
Alberto
P.S. It is better if you post directly to the mailing list instead of sending me private e-mails; someone else could have the right answer for you....
void ConstraintChecker::AddString(char **a, char *b) { int lengtha = strlen(*a); int lengthb = strlen(b); int combine = lengtha + lengthb + 1; char *tmp = *a;
*a = (char*)malloc(sizeof(char) * combine); memset(*a, 0, combine); strcat(*a, tmp); strcat(*a, b); free(tmp); }
DOMDocument* ConstraintChecker::ParseDoc(const char *mem)
{
MemBufInputSource *memBufIS = new MemBufInputSource((const XMLByte*)mem, strlen(mem), gMemBufId, false);
XercesDOMParser *domParser = new XercesDOMParser;
domParser->parse(*memBufIS);
DOMDocument *doc = domParser->adoptDocument();
// I believe these 2 are the offending delete(s) delete memBufIS; // This should call Xerces XMemory delete domParser; // This should call Xerces XMemory
return(doc); }
From the other thread on the xml web site, there were postings about placement operator delete invocation is not implemented, could these be possibly related in some way?
Sincerely
-- Jimmy Yu
>
> From: Alberto Massari <[EMAIL PROTECTED]>
> Date: 2004/03/03 Wed AM 09:42:17 PST
> To: [EMAIL PROTECTED]
> CC: [EMAIL PROTECTED]
> Subject: Re: Re: unresolved symbols (external)
>
> 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@@SGXQBD0QAVPanicHan dler
> > @[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]
>
>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
