• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Illegal declaration - but why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Illegal declaration - but why?


  • Subject: Re: Illegal declaration - but why?
  • From: Hugh Brown <email@hidden>
  • Date: Wed, 3 Jan 2007 22:30:20 -0800

Thanks Steve - that'll make things a little easier

--Hugh


On Jan 3, 2007, at 10:14 PM, Steve Checkoway wrote:


On Jan 3, 2007, at 8:55 PM, Hugh Brown wrote:

Several folks pointed out that bool is not a standard C type, and that must be the problem. Every compiler I've used since 1995 has accepted bool, so I just plain forgot it's not strictly part of C.

I'd like to point out that _Bool is the C99 data type and if you include stdbool.h, then you get definitions for false, true, and bool.


I seem to recall reading somewhere that stdbool.h is not valid in c++ programs but that gcc just adds the obvious #ifndef __cplusplus guard to the header file as "an extension." My memory has been known to make mistakes. From time to time.

--
Steve Checkoway



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Illegal declaration - but why? (From: Hugh Brown <email@hidden>)
 >Re: Illegal declaration - but why? (From: Michael Rice <email@hidden>)
 >Re: Illegal declaration - but why? (From: Hugh Brown <email@hidden>)
 >Re: Illegal declaration - but why? (From: Steve Checkoway <email@hidden>)

  • Prev by Date: Re: Illegal declaration - but why?
  • Next by Date: Re: Hiding symbols from other shared libraries linked to your shared library?
  • Previous by thread: Re: Illegal declaration - but why?
  • Next by thread: Setting a breakpoint in a library
  • Index(es):
    • Date
    • Thread