[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cygwin-xfree
Subject:    Re: Looking for OpenGL "hello world"
From:       Chan Kar Heng <karheng () softhome ! net>
Date:       2004-12-28 16:55:41
Message-ID: 5.1.0.14.1.20041229005811.00ad48a8 () pop ! softhome ! net
[Download RAW message or body]


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic