Re: C:\Program Files (x86)\Dev-Cpp\MinGW64\x86_64-w64-mingw32\lib32\libmingw32.a(lib32_libmingw32_a-crt0_c.o) In function `main': 18 C:\crossdev\src\mingw-w64-v3-git\mingw-w64-crt\crt\crt0_c.c undefin

2020-08-13 Thread Jonathan Wakely via Gcc
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.


Re: C program

2018-02-04 Thread Jonathan Wakely
On 4 February 2018 at 14:34, Rakshitha H wrote:
> In my laptop,it shows gcc is not recognized as internal or external command

Then you probably need to install it.

https://gcc.gnu.org/wiki/InstallingGCC