Re: Using NSExceptionHandler causes a linker error
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