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)选项
浙公网安备 33010602011771号