> And by the way, Paul, can't I use the
"bool" type in
> CrossStudio? I've seen that this word is highlighted in the
> text editor, so I thought it worked, but the compiler
> generated error messages in the variables and functions that
> I tried to declare with this type.
Bool is a C++ type and CrossWorks doesn't support that (yet).
The syntax highlighter make no differentiation between C and C++ code.
It syntax highlights all C90, C99, and C++ keywords irrespective of
whether the source file is written for a C90, C99, or C++ compiler.
Regards,
-- Paul.
Re: Boolen data type
Started by ●September 3, 2004
Reply by ●September 8, 20042004-09-08
Hi,
for the type _Bool you need stdbool.h but not every compiler has it.
Mspgcc has stdbool.h.
Rolf
msp430@msp4... schrieb am 03.09.04 15:32:10:
>
>
> > And by the way, Paul, can't I use the "bool" type in
> > CrossStudio? I've seen that this word is highlighted in the
> > text editor, so I thought it worked, but the compiler
> > generated error messages in the variables and functions that
> > I tried to declare with this type.
>
> Bool is a C++ type and CrossWorks doesn't support that (yet).
>
> The syntax highlighter make no differentiation between C and C++ code.
> It syntax highlights all C90, C99, and C++ keywords irrespective of
> whether the source file is written for a C90, C99, or C++ compiler.
>
> Regards,
>
> -- Paul.
>
>
>
> .
>
>
> Yahoo! Groups Links
>
>
>
>
>