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: Chris Suter <email@hidden>
- Date: Fri, 3 Sep 2010 13:49:33 +1000
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