vc++中调试出现lnk2001问题。

nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
libcd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Hello.exe : fatal error LNK1120: 3 unresolved externals

此时选择工程(project)中的设置(setting),选择c/c++,选择分类(“Catagory” 选择“Code Generation”,英文版),选择use run - time libary,选择Debug Multithread,点击确定,一般可以解决。vc++中调试出现lnk2001问题。

有的还会有问题,点击工程设置里面的(link)连接,在工程选项里面把/subsystem:console /incremental:yes 改为/subsystem:windows /incremental:yes
注意,Windows后面有空格。vc++中调试出现lnk2001问题。