Good morning.
I am using VC++6.0 SP5 on WinNT 4.0 SP6a.
I created a "Win32 Dynamic-Link Library Project", and I took advantage from a piece of code that I compilled succesfully, but in a "Win32 console" project (a .exe program).
I use Xerces-C libraries (I include the .lib in Project>Settings...).
When compilling, I get:
Linking...
LIBC.lib(crt0dat.obj) : error LNK2005: __cinit already defined in LIBCMTD.lib(crt0dat.obj)
So I include "/nodefaultlib:LIBCMTD.lib", but then I get:
Linking...
libcimtd.lib(iostrini.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,int,char const *,int)" (??2@YAPAXIHPBDH@Z)
libcimtd.lib(cerrinit.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,int,char const *,int)" (??2@YAPAXIHPBDH@Z)
libcimtd.lib(streamb.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,int,char const *,int)" (??2@YAPAXIHPBDH@Z)
Debug/xxx.dll : fatal error LNK1120: 1 unresolved externals
Any experience?
Thank you very much.
I am using VC++6.0 SP5 on WinNT 4.0 SP6a.
I created a "Win32 Dynamic-Link Library Project", and I took advantage from a piece of code that I compilled succesfully, but in a "Win32 console" project (a .exe program).
I use Xerces-C libraries (I include the .lib in Project>Settings...).
When compilling, I get:
Linking...
LIBC.lib(crt0dat.obj) : error LNK2005: __cinit already defined in LIBCMTD.lib(crt0dat.obj)
So I include "/nodefaultlib:LIBCMTD.lib", but then I get:
Linking...
libcimtd.lib(iostrini.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,int,char const *,int)" (??2@YAPAXIHPBDH@Z)
libcimtd.lib(cerrinit.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,int,char const *,int)" (??2@YAPAXIHPBDH@Z)
libcimtd.lib(streamb.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,int,char const *,int)" (??2@YAPAXIHPBDH@Z)
Debug/xxx.dll : fatal error LNK1120: 1 unresolved externals
Any experience?
Thank you very much.