import statement issues
import statement issues
- Subject: import statement issues
- From: Andrew Kinnie <email@hidden>
- Date: Thu, 3 Apr 2003 15:13:29 -0500
OK, I'm apparently an idiot. I am trying to develop a strategy game.
I have several of my own custom classes, e.g. Hex, Force, etc. A Hex
can have a Force, and a Force must be in a Hex. I therefore have
instance variable in each: Force has an instance variable hex of type
Hex, and Hex has an instance variable force of type Force.
I have created new Cocoa Obj-C files (.h and .m) for these in my
project. However, when I tried to compile, I get
Force.h:20: undefined type, found `Hex'
etc. I added an
#import "Hex.h"
below the normal cocoa import statement. I still get the error.
Likewise for Hex.h, I add
#import "Force.h"
What idiotic thing am I missing???
Andrew
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.