• 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
Exception handling and shared libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exception handling and shared libraries


  • Subject: Exception handling and shared libraries
  • From: Gert Thijs <email@hidden>
  • Date: Thu, 2 Feb 2006 14:40:53 +0100

Hi,

I have a question about the settings in Xcode to generate code that handles exception correctly.

We have developed a generic shared c++ library in one Xcode project in which we implemented several exception handling classes that inherit from std::exception. Now, we are working on a new c++ project in Xcode where we use this library together with a lot of new classes and also other shared libraries (eg. mysql++). Everything compiles without any problem and runs fine except when an exception is thrown from within the used shared libraries. These exceptions are not caught since the type does not seem to be the same.

I have searched quite a bit for information about this problem but I have never found a satisfactory answer on how to tackle this problem. As far as I understand it, the problem originates from the way the shared library is constructed and how objects in the library are referenced. So my guess is that there should be a set of options to Xcode or gcc or the linker to avoid this.

Has anyone any experience with this since I have tried several combination of options (like -fexceptions, -Bsymbolic) but none of them seemed to have any effect.

Gert

_______________________________________________
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: Exception handling and shared libraries
      • From: Andy Finnell <email@hidden>
  • Prev by Date: Re: Development for iPod?
  • Next by Date: Re: lazy symbol binding failed
  • Previous by thread: Re: Development for iPod?
  • Next by thread: Re: Exception handling and shared libraries
  • Index(es):
    • Date
    • Thread