By adding #include <stdbool.h> it worked.
Den 31-10-2010 14:45, Tim Prince skrev:
On 10/31/2010 6:21 AM, David wrote:
Does Cygwin c compiler not support c99?
or does c99 not support?:
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.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;
}
But why do I have to include <stdbool.h>?
--
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