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() . ...