Compile error I can't figure out
Maybe it's just because it's late, but I keep getting the following error a LOT:
".objc_class_name_<CLASSNAME>", referenced from:
literal-pointer@__OBJC@__cls_refs@<CLASSNAME> in <CONTAININGFILE>.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
What is going on? Thanks.
".objc_class_name_<CLASSNAME>", referenced from:
literal-pointer@__OBJC@__cls_refs@<CLASSNAME> in <CONTAININGFILE>.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
What is going on? Thanks.
Maybe you forgot to import the header? (#import CLASS_NAME.h)
Blacktiger Wrote:Maybe you forgot to import the header? (#import CLASS_NAME.h)
That's not the problem. Thanks though.
You forgot to compile/link the source file/library/framework that contains the named class.
OneSadCookie Wrote:You forgot to compile/link the source file/library/framework that contains the named class.
...Most of the classes I'm having issues with have been dragged in from other projects. I did the "Copy Files Into Project Folder" option when I did that though. How do I fix it?
In Xcode, expand 'Targets', then the target you are building. Look in each of the sections to see if everything looks correct. (Specifically, .m files should be in compile sources) If something is missing you can just drag it in to add it to your build.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| 'Unidentified error' error in Xcode | scgames | 2 | 3,163 |
Jun 10, 2006 01:38 AM Last Post: scgames |
|

