error LNK2019: unresolved external symbol main referenced in function __tmainCRTStartup

来源:互联网 发布:淘宝网装修图片 编辑:程序博客网 时间:2024/06/07 08:30

error LNK2019: unresolved external symbol main referenced in function __tmainCRTStartup

解决方法步骤:
(1)Project -> xx Properties -> Configuration Properties -> Preprocessor :
_CONSOLE;改为 _WINDOWS;
(2)Project -> xx Properties -> Configuration Properties -> C/C++ -> Linker -> All Options -> SubSystem
选择 Windows (/SUBSYSTEM:WINDOWS)

阅读全文
0 0