Asked
Active
Viewed 329 times
-1
-
2Please post everything (The code, the error message and other related things) *in the question, as text*. And not as a link to an image. – Eugene Sh. Jan 04 '21 at 18:21
-
Google out undefined Winmain – Tarik Jan 04 '21 at 18:22
2 Answers
0
The reference to WinMain@16 means that you are linking as a Windows application, not a Console application. I don't use MINGW, but you should check how to set the application type.

CSM
- 1,232
- 1
- 8
- 12
0
I see it returns a 1. When coding using C, a preferred practice is to include this line of code at the end of the main:
return 0;
With the purpose of telling the OS that your program executed successfully. Also you don't have a return type to your main, you can choose between depending if you want to return an int or nothing:
int main()
void main()

Julissa DC
- 251
- 3
- 14