I am new to using C and I followed this link to set up eclipse for C https://www.youtube.com/watch?v=yMPMGNcDIjI
I typed in this program
#include <stdio.h>
int main () {
printf ("hello");
return 0;
}
and I hit build and I got this error message:
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../lib/libcygwin.a(libcmain.o): in function `main':
/usr/src/debug/cygwin-3.2.0-1/winsup/cygwin/lib/libcmain.c:37: undefined reference to `WinMain'
collect2: error: ld returned 1 exit status
make: *** [makefile:45: TEST.exe] Error 1
"make all" terminated with exit code 2. Build might be incomplete.
I do not know what the problem is so I don't know what I am supposed to search for.