This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Looking for OpenGL "hello world"
- From: Chan Kar Heng <karheng at softhome dot net>
- To: cygwin-xfree at cygwin dot com
- Date: Wed, 29 Dec 2004 01:02:48 +0800
- Subject: Re: Looking for OpenGL "hello world"
- References: <5.1.0.14.1.20041228165641.00ab4f08@pop.softhome.net>
- Reply-to: cygwin-xfree at cygwin dot com
>> --- a.c ---
>> #include <stdio.h>
>> int main(void) {puts("Hello world!");return(0);}
>> /* the empty line below is required to compile properly */
>>
>> -------------
>>
>> should work just doing gcc -o a a.c.
>
>Hmm....
>Is there a reason you go so far as to explicitly indicate that a newline
>is required
>at the end of the file? Seems like you're being a bit complex?
>Is there a good reason? (I do see an old gcc bug talking about gcc
>generating 2 warnings
>for this occurance, but its like 4 years old).
:)
i'm rather meticulous & don't really like warnings.
as more files come in, more warnings come in.
they flood the screen and it gets hard to see errors.
n i'd prefer not to turn off warnings in the first place.
maybe i shouldn't mention it's required "to compile properly".
rather, it should be "to compile without warning".
ps: sorry for getting off topic... discontinuing.
rgds,
kh