Using NSExceptionHandler causes a linker error
Using NSExceptionHandler causes a linker error
- Subject: Using NSExceptionHandler causes a linker error
- From: "Paul Sanders" <email@hidden>
- Date: Fri, 6 Mar 2009 20:56:18 -0000
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...
TIA - Paul Sanders.
_______________________________________________
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