This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Why can't I compile HelloWorld ?

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>

        return 0;

$export LANG=C
$ gcc hello.c
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../libcygwin.a(libcmain.o): In
function `main':
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

See also

Thanks .

1xx <> <>

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]