Re: Has Xcode lost its mind, or have I?
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