View Full Version : parenting issue with static library

Nov 2, 2009, 08:10 PM
I have a static library that i made and in there is a class that is a subclass of UIViewController

when i import the header file into another class it compiles fine
if i make an instance of that class it compiles fine

when i make a class a child of it it gives me two errors

Linking ....... (2 errors)
"_OBJC_CLASS_$_wtfClass", referenced from:
_OBJC_CLASS_$_idkClass in idkClass.o

"_OBJC_METACLASS_$_wtfClass", referenced from:
_OBJC_METACLASS_$_idkClass in idkClass.o
symbol(s) not found
collect2: id returned 1 exit status

how can it not find it when it has no problem importing the header and making an instance of it?

i've tried cleaning all targets and deleting the reference to the library and remaking it
it was working before (albeit it complained about a variable that was only made in the child class claiming it was in the parent class which has no variables at all) and then suddenly compiling again a few more times gave a different error message...