At 12.06 10/06/2004 +0200, Milan Tomic wrote:
I got this error:
Xerces250D.lib(Win32PlatformUtils.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" ([EMAIL PROTECTED]@Z) already defined in nafxcwd.lib(afxmem.obj)
nafxcwd.lib(dllmodul.obj) : error LNK2005: [EMAIL PROTECTED] already defined in MyCOMApp.obj
Xerces250D.lib(Win32PlatformUtils.obj) : warning LNK4006: "void * __cdecl operator new(unsigned int)" ([EMAIL PROTECTED]@Z) already defined in nafxcwd.lib(afxmem.obj); second definition ignored
nafxcwd.lib(dllmodul.obj) : warning LNK4006: [EMAIL PROTECTED] already defined in MyCOMApp.obj; second definition ignored
Where in Win32PlatformUtils.cpp file operator new is defined? I can't find it. How can I fix this error?
From the error message I would guess that you are using the static version of the C++ runtime library in your project, and linking it against the binary version of Xerces (that uses the DLL version of the same runtime library).
If you deliberately chose the static runtime library, you will have to rebuild Xerces from the sources replacing the /MDd switch with /MTd (for debug build) and the /MD with /MT (for release build). Otherwise, change the settings for your project to specify /MDd and /MD
Alberto
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
