Sign in to follow this  

VC++ 6.0 Link Errors.

Recommended Posts

I have an executable that is being linked with a static library. Some times it links fine and sometimes it gives the following error. I'm really confused about why its happening. It seems to happen at odd intervals. Both the executable and static library are being compiled as multi threaded. The executable is linked with a Static MFC library. I'm not sure if its because of something I changed or not. I did a search on google and found nothing on this error. Any suggestions? Thanks. Bill
--------------------Configuration: LevelED - Win32 Release--------------------
nafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCMT.lib(new.obj)
nafxcw.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in libcpmt.lib(delop.obj)
../Release/LevelED.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

LevelED.exe - 3 error(s), 0 warning(s)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this