• 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: Has Xcode lost its mind, or have I?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Has Xcode lost its mind, or have I?


  • Subject: Re: Has Xcode lost its mind, or have I?
  • From: David Blanton <email@hidden>
  • Date: Thu, 2 Sep 2010 21:55:24 -0600

Thanks Chris, it was circular header, must be late.

BTW, what is Xcode's Preprocess pop-up menu option?


On Sep 2, 2010, at 9:49 PM, Chris Suter wrote:

Hi David,

On Fri, Sep 3, 2010 at 1:29 PM, David Blanton <email@hidden> wrote:
I get the following error:



/Volumes/SECURE/_working/_Mac/BLES/PropertyMonogram.h:56: error: ISO C++ forbids declaration of 'PropertyMgm' with no type
/Volumes/SECURE/_working/_Mac/BLES/PropertyMonogram.h:56: error: expected `;' before '*' token

I'm guessing this might be a circular header include problem. Does PropertyMgm.h include PropertyMonogram.h and vice versa?

Basically, you should avoid including header files within header files as much as possible by using @class directives for Objective-C objects or in the case of classes and structs, just forward declare them. If you have to include header files within header files, make sure you avoid or appropriately deal with loops.

If this isn't the problem, use Xcode's Preprocess pop-up menu option to diagnose the problem.

Kind regards,

Chris


 _______________________________________________
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

  • Follow-Ups:
    • Re: Has Xcode lost its mind, or have I?
      • From: Seth Willits <email@hidden>
    • Re: Has Xcode lost its mind, or have I?
      • From: Chris Suter <email@hidden>
References: 
 >Has Xcode lost its mind, or have I? (From: David Blanton <email@hidden>)
 >Re: Has Xcode lost its mind, or have I? (From: Chris Suter <email@hidden>)

  • Prev by Date: Auto Reply: Xcode-users Digest, Vol 7, Issue 297
  • Next by Date: Re: Has Xcode lost its mind, or have I?
  • Previous by thread: Re: Has Xcode lost its mind, or have I?
  • Next by thread: Re: Has Xcode lost its mind, or have I?
  • Index(es):
    • Date
    • Thread