Re: Re: Objc - Exceptions
Re: Re: Objc - Exceptions
- Subject: Re: Re: Objc - Exceptions
- From: "Cocoa Puff" <email@hidden>
- Date: Thu, 7 Sep 2006 08:18:53 -0700
That seemed to fix it. Thanks for the reading material.
On 9/7/06, Sean Murphy <email@hidden> wrote:
On Sep 7, 2006, at 9:49 AM, Cocoa Puff wrote:
> I'm trying to use the Objc exceptions, and it does work. However, I
> get the following warning when I build the application:
>
> "warning: use '-fobjc-exceptions' to enable Objective-C exception
> syntax"
>
> In the project settings, I found a compiler flag "Enable Objective-C
> Exceptions", which I have turned on. I'm still getting the warning. I
> have cleaned and rebuilt the project, but it hasn't helped. Here is
> the description for the compiler flag I enabled:
>
> "Enable Objective-C exception handling. [GCC_ENABLE_OBJC_EXCEPTIONS,
> -fobjc-exceptions]
Since you've turned on ObjC exceptions at the project level, make
sure your current target does not override that value and explicitly
disable them. Also check to see which build configuration the flag
has been set under. If you enabled it for, say, the Release config,
and the project's active build configuration is Debug, that'd be
another reason you're still left with compiler warnings.
For more info, be sure to read up on "How Xcode Evaluates Build
Settings" at
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/
XcodeUserGuide/Contents/Resources/en.lproj/05_04_bs_build_settings/
chapter_32_section_4.html#//apple_ref/doc/uid/TP40002691-BACGACGI>
This describes the layered approach to build setting specifications,
and explains how Targets override options set in the Project, for
instance.
The entire Xcode User Guide:
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/
XcodeUserGuide/Contents/Resources/en.lproj/00_intro/
chapter_1_section_1.html>
Good luck,
- Sean
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden