Hi all! I started gcc for the first time in one month. I have noticed that the compiler does not operate correctly.
$ cat hello.c #include <stdio.h> int main(void) { printf("hello!\n"); return 0; } $export LANG=C $ gcc hello.c /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../libcygwin.a(libcmain.o): In function `main': /usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/lib/libcmain.c:39: undefined reference to `_WinMain@16' collect2: ld returned 1 exit status I was able to compile the more complicated program one month ago. Why can't I compile? What should I do in order to compile Hello World again? Operating System: Windows 7 Ultimate 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.130104-1431) Language: Japanese (Regional Setting: Japanese) System Manufacturer: Dell Inc. System Model: XPS 8300 BIOS: BIOS Date: 03/28/12 09:12:57 Ver: 04.06.04 Processor: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz (8 CPUs), ~3.4GHz Memory: 16384MB RAM Available OS Memory: 16366MB RAM https://dl.dropboxusercontent.com/u/86335040/openSUSE/DxDiag13.txt See also http://d.hatena.ne.jp/Itisango/20130420/1366424497 Thanks . -- 1xx <itsa...@gmail.com> <https://twitter.com/ItSANgo> <http://d.hatena.ne.jp/Itisango/> -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple