Looking for OpenGL "hello world"
Chan Kar Heng
karheng@softhome.net
Tue Dec 28 16:55:00 GMT 2004
>> --- 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
More information about the Cygwin-xfree
mailing list