• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
zero link / multiple definitions of symbol error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

zero link / multiple definitions of symbol error


  • Subject: zero link / multiple definitions of symbol error
  • From: Matthew Johnson <email@hidden>
  • Date: Tue, 18 Nov 2003 21:01:52 -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
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: CVS integration for nibs?
  • Next by Date: Re: Integrating HeaderDoc into Xcode build
  • Previous by thread: Re: how to modify bundle properties
  • Next by thread: Problem with XCode converted Project Builder project
  • Index(es):
    • Date
    • Thread