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]

Re: Why can't I compile HelloWorld ?


On 4/20/2013 7:24 AM, 1xx wrote:
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?



Thanks .


please follow:
Problem reports:       http://cygwin.com/problems.html

specially:
"Run cygcheck -s -v -r > cygcheck.out and include that file as an attachment in your report. Please do not compress or otherwise encode the output. Just attach it as a straight text file so that it can be easily viewed."




--
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


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