Jump to content
  • Advertisement
Sign in to follow this  
Billr17

VC++ 6.0 Link Errors.

This topic is 4713 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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--------------------
Linking...
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
Advertisement
Oddly enough, adding 'nafxcw.lib' to the Object/Library section under the Linker tab for the executable resolved the issue. I'm still puzzled by this?

Bill

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!