zero link / multiple definitions of symbol error
zero link / multiple definitions of symbol error
- Subject: zero link / multiple definitions of symbol error
- From: Matthew Johnson <email@hidden>
- Date: Mon, 17 Nov 2003 20:59:50 -0600
I am having a puzzling problem. I have a new xcode project that builds
fine with zero link turned on, but if I turn zero link I get the error
"multiple definitions of symbol .objc_category_name_<class>_<category>"
for every case where I have defined a category on my custom class. A
simplified example of the problematic code is as follows:
@interface MyObject : NSObject {
int aField;
}
@end
@implementation MyObject
- (void)dealloc {[super dealloc];}
@end
@interface MyObject (custom)
- (void)customMethod;
@end
@implementation MyObject (custom)
- (void)customMethod {return;}
@end
Am I doing anything strange? Do I need to modify a build setting? The
code seems to run fine so I can't figure out why it won't link properly
when I try to do a deployment build or turn zero link off. Help!
Thanks,
Matthew
_______________________________________________
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.