nafxcwd.lib(afxmem.obj) : error LNK2005

近日在VC6.0写一个程序,编译时出如下错误

Linking...

nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBCMTD.lib(dbgdel.obj)

Debug/ShowLog.exe : fatal error LNK1169: one or more multiply defined symbols found

Error executing link.exe.

 

初步判断是库函数加载顺序的问题;

如下图这样改变了加载顺序;

问题解决;

 

你可能感兴趣的:(nafxcwd.lib(afxmem.obj) : error LNK2005)