This is the wrong mailing list for your question, please read
https://gcc.gnu.org/lists.html (and don't put your entire email in the
Subject: line please).

The MinGW compiler can be used to create console applications or GUI
applications. The default is -mconsole, which means the linker looks
for a 'main' function. You have apparently used -mwindows which is
used to create GUI applications and means the linker looks for a
WinMain function. See
https://gcc.gnu.org/onlinedocs/gcc/x86-Windows-Options.html#x86-Windows-Options
or MinGW tutorials for more information.

If your intention is a GUI application, then you need to write
'WinMain' not 'main'. If your intention is a console application, then
you need to stop using the -mwindows option (or add the -mconsole
option).

Please send any replies to the gcc-h...@gcc.gnu.org mailing list, not this one.

Reply via email to