This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 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: Looking for OpenGL "hello world"


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


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