Handmade Hero»Forums»Code
Lokit Khemka
4 posts
Day 1 "WinMain():Function cannot be overloaded"
Edited by Lokit Khemka on
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
1341 posts
Day 1 "WinMain():Function cannot be overloaded"
Edited by Simon Anciaux on
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 ?