How to solve C++ undefined reference to 'WinMain@16'

How to solve when your compiler shows undefined reference to 'WinMain@16'?

undefined reference to 'WinMain@16' means that the WinMain function cannot be found. WinMain is the entry function of the windows program.

It is possible to write int main() as int main() . ...

Guess you like

Origin blog.csdn.net/weixin_71529971/article/details/129647195