Unable to use bool type in i386.h

Terry Guo flameroc@gmail.com
Fri Nov 22 14:34:00 GMT 2013

On Fri, Nov 22, 2013 at 10:02 PM, Jędrzej Dudkiewicz
<jedrzej.dudkiewicz@gmail.com> wrote:
> On Fri, Nov 22, 2013 at 2:59 PM, Terry Guo <flameroc@gmail.com> wrote:
>> On Fri, Nov 22, 2013 at 8:53 PM, Rob <robpilling@gmail.com> wrote:
>>> It seems that C files include this, so you'll want _Bool, or just use an int.
>> Thanks for your reply. I know I can use the int. But the bool type is
>> more precise. And now GCC is in C++, the bool type should be
>> supported. I am curious whether this is a missing part of GCC. Can
>> someone please help to confirm?
> I'm not an expert, but it seems that you are compiling *.c files. GCC
> being written in C++ does not change C language in any way, so bool
> won't work.
> --
> Jędrzej Dudkiewicz

But if you search i386.c, you will find many bool type variables. Why
it works for i386.c but not for i386.h?


More information about the Gcc-help mailing list