Mailing Lists: Apple Mailing Lists

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

Re: Cyclic import dependency causes compilation errors




On Feb 18, 2006, at 7:21 PM, Alexander Hartner wrote:

I have two classes which depend on each other. The LDAP attribute contains an array of LDAPAttributeValues. Each LDAPAttribute contains a reference to it's parent LDAPAttribute. Yet as soon as I compile this with the line #import "LDAPAttribute.h un-commented, I get an compilation error:

Add a forward...

@class LDAPAttribute;

@interface LDAPAttributeValue : NSObject
{
    LDAPAttribute* parentAttribute;
}
@end

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Cyclic import dependency causes compilation errors (From: Alexander Hartner <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.