2 Answers2

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