我正在尝试在 Microsoft Visual Studio 2012 中编译我的 Visual C++ 项目(使用 MFC),它返回以下错误:
error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCMTD.lib(new.obj)
error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBCMTD.lib(dbgdel.obj)
error LNK2005: "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z) already defined in LIBCMTD.lib(delete2.obj)
error LNK1169: one or more multiply defined symbols found
所以我用谷歌搜索了一下,找到了这个页面:http: //support.microsoft.com/ ?scid= kb%3Ben-us%3B148652&x =13&y=8 我尝试了解决方案一,但“忽略库”框不存在,对象/库模块框也是如此。对于 Ignore Libraries,我找到了 Ignore specific library,但跳过第五步只会给我 17xx 错误。
我用谷歌搜索了很多,但总是回到同一个页面,如何在 Visual Studio 2012 中解决这个问题?