Neil Palmer

Codewarrior for CF bool support

Discussion created by Neil Palmer on Jul 24, 2007
Latest reply on Jul 25, 2007 by Neil Palmer
Hi all.

In Codewarrior for Coldfire V6.4 SE, I can't seem
to get the compiler to understand the bool data type.

I have the following declaration:

bool rc5_detect(void);


which produces the following error:

Error  : undefined identifier 'bool'
irlearn_routines.h line 2 bool rc5_detect(void);

I have 'Enable bool support' checked in the language settings,
and the keyword appears in blue in the editor, suggesting that
it is recognized as a keyword.

I don't know if any other header files need to be included, as
bool is a language keyword, is it not?

Does anyone know what I might be doing wrong?