Re: Help with recursive includes
Re: Help with recursive includes
- Subject: Re: Help with recursive includes
- From: Aaron Wallis <email@hidden>
- Date: Sun, 22 Feb 2009 11:00:46 +1100
Yeah, I had a look at that already, it's definitely in the right spot:
http://www.quicksnapper.com/d2kagw/image/untitled-0012
Interestingly enough, if I comment out the entry from the header file,
I don't get the error?
http://www.quicksnapper.com/d2kagw/image/untitled-0012
Aaron
On 22/02/2009, at 10:33 AM, Luke the Hiesterman wrote:
That error isn't caused by recursive includes (which are solved with
#import anyway). That error means you defined an objective-c method
and it's not in between an @implementation and @end - more than
likely this definition occurs in TMPSTManagedFile.h.
Luke
On Feb 21, 2009, at 3:27 PM, Aaron Wallis wrote:
Hi all,
I'm working on a project which is much larger than what i'm used
to, and i've come up to a bit of a brick wall.
When I compile my application, I start getting build errors caused
by recursive imports.
I'm sure there's an easy way to get around it, but it currently
alludes me.
Here's a screen shot of my error:
http://www.quicksnapper.com/d2kagw/image/untitled-0011
if I remove the #import "TMPSTManagedFile.h" from the header of the
class and change it to @class TMPSTManagedFile the error goes away,
and the application *would* run fine, if I didn't start getting
errors caused from the ObjC 2.0 style property accessors like:
TMPSTManagedFile *tFile = [blah blah];
NSLog(@"%@", tFile.name);
In which case I start getting errors like:
Error: request for member 'name' in something not a structure or
union
Any ideas?
Cheers
Aaron.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden