C++故障排除-VS2010 error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmai

报错:VS2010  error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStar


参考:http://www.cnblogs.com/ziwuge/archive/2011/03/10/1979607.html


我的解决:.进入project->setting->Link, 在Project options中将 /subsystem 设置为Console (/SUBSYSTEM:CONSOLE)

你可能感兴趣的:(C++,故障)