error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)"

问题:

编译错误

error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int)" (??2 at YAPAXI@Z)

 

 

解决方法:

1、Configuration Properties -> Linker -> Input -> Igonre Specific Library 里追加以下两个lib
  Nafxcwd.lib Libcmtd.lib

 

2、Configuration Properties -> Linker -> Command Line -> Addtional Option 从新追加这两个lib

  Nafxcw.lib Libcmt.lib

你可能感兴趣的:(properties,command,input,library,linker)