X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=C5ym+onIph2b/vTNhTq7ZFIca0ZcQ b58yivtOntmNKPAX5j8FDTc7BJ8pxHrDjPfJT/M6FK5WF706Q7MT1JHq9Zzvhg0s yuHlvpZiJ9AwFGCxVenwJctmAJEu88gd0nurSkD1jiX5qDP2ovDKexsRo5yHgBJ1 p6+73xe2da0Lu8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=5nyAYXihQJQIDCnqi9K7KPGCTCw=; b=PGI grv+gwam10BFjWGqvS5PY/AyLg9BFLxIVJn5tnQvVhhPKMPYhXLBJc95c7Sy+uTu 860KRSzDs7zA7D0O80n3Xu6TuloulC+oQh64/qRBPVrY9n+Lu3K071VIH0IVCRBD vwIKW5iPXzqw9CcK4to7o2sFK8ZsdyNAI4Auf05k= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.1 MIME-Version: 1.0 X-Received: by 10.180.93.134 with SMTP id cu6mr30747437wib.8.1366435490505; Fri, 19 Apr 2013 22:24:50 -0700 (PDT) Date: Sat, 20 Apr 2013 14:24:50 +0900 Message-ID: Subject: Why can't I compile HelloWorld ? From: 1xx To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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 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 AT 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 -- 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