Undefined symbols in Objective-C++ project
Undefined symbols in Objective-C++ project
- Subject: Undefined symbols in Objective-C++ project
- From: David Alter <email@hidden>
- Date: Wed, 25 Mar 2009 15:43:06 -0700
I'm getting an Undefined symbols error for a class that I know is part of the target being built. Here is some detail
I have an Objective-C++ target. The target is building a dylib. One of the files is a C++ class but it has a .mm extension so that it can talk to the Obj-C world. Inside the C++ class I can instantiate and use Cocoa objects with out issue. Example (NSButton, NSArray, etc... ) As soon as I try and do this with one of my own Obj-C classes it gives me a link error. The Obj-C class is included in the target and has a .mm extension.
I made a very simple class that inherits from NSObject and does almost nothing. It has one method that prints a line to the console. If I instantiate that object I get the link error.
Here is the error
Undefined symbols:
".objc_class_name_RBDoNothing", referenced from:
literal-pointer@__OBJC@__cls_refs@RBDoNothing in MyPluginCocoa.dylib-i386-master.o
ld: symbol(s) not found
Does anyone have any ideas on this.
Thanks for the help
-dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden