Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange compile time error message...



I have been getting a strange compile time error message in a Cocoa
project I'm working on.  When I import header file "A.h" into header
file "B.h", I get the following two error messages in "B.m":

error: parse error before 'MyHeader'
fatal error: method definition not in @implementation context

If I instead import "A.h" into "B.m" (instead of into "B.h"), the errors
disappear and everything compiles normally.

"A" is a singleton class, and "B" isn't.

Not sure if that's enough detail for anyone to help... 

Any ideas? 

Thanks,

-Ryan


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.