This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: getting bool in 'C' code...
- To: robt at flyingpig dot com
- Subject: Re: getting bool in 'C' code...
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Fri, 30 Jun 2000 19:25:06 +0200
- CC: libstdc++ at sourceware dot cygnus dot com
- References: <001301bfe2b0$fd9d5010$b400a8c0@eventhorizon>
> I was just recompiling my binutils and it appears to fail because
> it's internal 'boolean' enum clashes with bool. Surely bool shouln't
> even come into gcc's mind about when compiling a 'c' file....
> anyone know what's happening?
I'm a bit without context here. What exactly are you compiling, what
is the exact error message, and why are you posting it to the
libstdc++ list?
You are right that there are is no builtin boolean type in the gcc C
front-end, unless you explicitly include <stdbool.h> (which was
introduced by C99).
Regards,
Martin