Forum Discussion
Altera_Forum
Honored Contributor
16 years agoerrors of using bool type in program
when i tried to define a bool type data or use bool type as my function's parameter,there is many error messages displayed in the concole. like this: ../hello_world.c:23: error: `bool' u...
Altera_Forum
Honored Contributor
16 years agoYou need to include stdbool.h as well.
The editor probably has a different list of known typenames. OTOH the compiler will generate better code if you avoid 'bool'.