Solve Error: nafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z) already defined in libcpmt.lib(newaop.obj)

 

Error:

nafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z) already defined in libcpmt.lib(newaop.obj)

 

Solution:

Go to Property -> Linker -> Input -> Additional Dependencies

Add nafxcw.lib

Go to Ignore Specific Default Libraries

Add nafxcw.lib

posted @ 2017-10-17 06:48  Grandyang  阅读(1637)  评论(0编辑  收藏  举报
Fork me on GitHub