Re: Unable to use bool type in i386.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 22, 2013 at 10:02 PM, Jędrzej Dudkiewicz
<jedrzej.dudkiewicz@xxxxxxxxx> wrote:
> On Fri, Nov 22, 2013 at 2:59 PM, Terry Guo <flameroc@xxxxxxxxx> wrote:
>> On Fri, Nov 22, 2013 at 8:53 PM, Rob <robpilling@xxxxxxxxx> 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?

BR,
Terry





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux