unresolved external symbol main referenced in function "int __cdecl invoke_main(void)的解决方法

原因:

一般是因为链接器(Linker)的配置项SubSystem选择了Console (/SUBSYSTEM:CONSOLE),而代码是需要编译成WinForm程序。

 

解决方法:

右键项目名 -> Properties -> Configuration Properties -> Linker -> System -> SubSystem

-> 点击下拉框 -> 选择Windows (/SUBSYSTEM:WINDOWS)选项

 

posted @ 2022-09-11 01:59  Sininsis  阅读(339)  评论(0)    收藏  举报