Register
Handmade Hero»Forums»Code»Day 1 "WinMain():Function cannot be overloaded"
Lokit Khemka
1 posts
Day 1 "WinMain():Function cannot be overloaded"
2 weeks, 6 days ago Edited by Lokit Khemka on Dec. 29, 2019, 7:09 a.m.
I was following the day 1 tutorial in Visual Studio 2019. But, I cannot compile the code. It is giving the error:

"WinMain():Function cannot be overloaded".

I am not sure how to solve this problem?


Simon Anciaux
705 posts
Day 1 "WinMain():Function cannot be overloaded"
2 weeks, 5 days ago Edited by Simon Anciaux on Dec. 29, 2019, 3:45 p.m.
The error means that there are two (or more) function called WinMain but with different parameters in your program.

Could you post all your code and build script ? Did you make a Visual Studio 2019 project, or are you building like Casey with a batch file ?