Re: Type?
Re: Type?
- Subject: Re: Type?
- From: John Hörnkvist <email@hidden>
- Date: Thu, 8 Nov 2001 18:43:27 +0100
On Thursday, November 8, 2001, at 05:33 , email@hidden wrote:
One would think that the following error message would be simple to
understand, but I have not been able to get rid of a dozen or more of
the bloody things:
undefined type, found `someClass'
I ran into this before and one fix fixed all, but now I can't remember
what the hell I did.
Again, sorry for the noise; does _anyone_ know where these error
messages might be documented, so I can look there first?
The various errors you've been getting come from different places in the
tool chain. This is an error from the compiler, so you'd be best served
by looking in the compiler documentation. (Or the compiler source if all
else fails.)
In this case the compiler doesn't know what "someClass" is. So, you've
probably neglected to import the header file where someClass is defined,
or made a typo in the name. (I'd expect the class to be called
SomeClass...)
Most likely, you're missing an
#import "someClass.h"
You can make the type known to the compiler manually by writing
@class someClass;
That's usually _not_ a good idea, though.
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com
References: | |
| >Type? (From: email@hidden) |