• 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
Re: Using NSExceptionHandler causes a linker error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSExceptionHandler causes a linker error


  • Subject: Re: Using NSExceptionHandler causes a linker error
  • From: Joar Wingfors <email@hidden>
  • Date: Fri, 6 Mar 2009 13:13:34 -0800

Paul,

You need to add the ExceptionHandling.framework to your project, and set it to be part of your target. That's how you tell Xcode to make the target link to it.

	* Right-click in the Groups & Files pane
	* Select Add > Existing Frameworks...

j o a r



On Mar 6, 2009, at 12:56 PM, Paul Sanders wrote:

I am trying to make use of the services of NSExceptionHandler in my code, but when I do so I get a linker error. Perhaps someone can help. Code:

#import <ExceptionHandling/NSExceptionHandler.h>
...
NSExceptionHandler *nseh = [NSExceptionHandler defaultExceptionHandler];


The linker error is an undefined symbol: .objc_class_name_NSExceptionHandler

I get the same error with both the 10.4 and 10.5 SDK's and I can't find any obvious solution. The framework appears to exist OK (in / Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks, and also in the MacOSX10.5.sdk). If it were windows, I would be looking for a .lib to link against but things seem a little different in Mac world...

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Using NSExceptionHandler causes a linker error (From: "Paul Sanders" <email@hidden>)

  • Prev by Date: Re: Why is my UIColor white actually gray?
  • Next by Date: Re: Newbie query re notifications
  • Previous by thread: Using NSExceptionHandler causes a linker error
  • Next by thread: Why is my UIColor white actually gray?
  • Index(es):
    • Date
    • Thread