Jon wrote:
> I hope someone can help me solve this!
>
> The errormessage:
> ------------Configuration: SH03 - Win32 Debug--------------------
> Linking...
> nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator
> new(unsigned int)" (??2@YAPAXI@Z) already defined in
> LIBCD.lib(new.obj)
> nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator
> delete(void *)" (??3@YAXPAX@Z) already defined in
> LIBCD.lib(dbgdel.obj)
These messages usually occur if you mix and match the different run
time libraries. The MSVC++ offers single threaded, multi threaded,
multi threaded dll version of the run time libraries in both debug
and release and if you do not use the same RTL for all the libraries
and objects that make up the executable or dll, you get this warning.
> nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol
> __endthreadex
> nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol
> __beginthreadex
> Debug/SH03.exe : fatal error LNK1120: 2 unresolved externals
In a similar mannaer, I think this warning message disapears if you
make sure all files are compiled to use the multi threaded or multi
threaded dll RTL.
Jussi Jumppanen
Author of: Zeus for Windows (New version 3.93 out now)
"The C/C++, Cobol, Java, HTML, Python, PHP, Perl programmer's editor"
Home Page:
http://www.zeusedit.com