我对Visual Studio有问题。每当我尝试编译任何项目时,我都会遇到这两个错误。
有什么帮助我可以解决这个问题,还是应该重新安装它?
error LNK2019: unresolved external symbol WinMain@16 referenced in function__tmainCRTStartup
error LNK1120: 1 unresolved externals
最佳答案
我认为您需要像这样更改设置:
Project properties -> C/C++ -> Linker -> System -> SubSystem: Console (/SUBSYSTEM:CONSOLE)
关于visual-studio - Visual Studio错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21877548/