• 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: C++ exception results in SIGABRT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ exception results in SIGABRT


  • Subject: Re: C++ exception results in SIGABRT
  • From: Stefan Werner <email@hidden>
  • Date: Tue, 19 Feb 2008 18:59:41 +0100


On Feb 19, 2008, at 6:21 PM, Chris Espinosa wrote:

For mixed C and C++ code, the default item is present, but performs the default action in both languages, that is, leaves exceptions enabled in C++ but ignores them in C. Which is not what you desire, no. The solution is to explicitly check Enable C++ Exceptions at the target level, rather than leaving it enabled by default. That way you get the consistent explicit behavior (-fexceptions) for both C and C++ code, rather than the inconsistent default behavior.

To make sure I understand this corretly: checking "Enable C++ Exceptions" on Target level does not give the same result as the target inheriting it from project or xcconfig level? So whether or not I set GCC_ENABLE_CPP_EXCEPTIONS = YES in my xcconfig has no effect whatsoever?


The behavior I would expect from the checkbox is that checking it would (as the help text suggests) explicitly enable C++ exceptions for C code (-fexceptions) and unchecking it woudl explicitly disable it (- fno-exceptions).

-Stefan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: C++ exception results in SIGABRT
      • From: Chris Espinosa <email@hidden>
References: 
 >C++ exception results in SIGABRT (From: Stefan Werner <email@hidden>)
 >Re: C++ exception results in SIGABRT (From: Howard Hinnant <email@hidden>)
 >Re: C++ exception results in SIGABRT (From: Stefan Werner <email@hidden>)
 >Re: C++ exception results in SIGABRT (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: C++ exception results in SIGABRT
  • Next by Date: Re: C++ exception results in SIGABRT
  • Previous by thread: Re: C++ exception results in SIGABRT
  • Next by thread: Re: C++ exception results in SIGABRT
  • Index(es):
    • Date
    • Thread