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] |
Neither I nor the compiler see a declaration of bool there. Is this example what you intended?
Does Cygwin c compiler not support c99? or does c99 not support?:
#include <stdio.h> #include <stdlib.h>
int main(void) { bool f=true; for(int i=0; i<10; i++) { if (f) printf("%d\n",i); } puts("Hello World!!!"); /* prints Hello World!!! */ return EXIT_SUCCESS; }
Here the bool declaration fails and so do the for statement. The compiler doesn't like that I use the iteration variable inside the for-loop.
-- Tim Prince
-- 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] |