天天看點

error LNK2019: unresolved external symbol main referenced in function __tmainCRTStartup

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)

繼續閱讀