• 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: dynamic_cast failing weirdly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dynamic_cast failing weirdly


  • Subject: Re: dynamic_cast failing weirdly
  • From: "E. Wing" <email@hidden>
  • Date: Wed, 25 Jul 2007 13:35:54 -0700

I got bit by something that sounds like this about 2 years ago when
gcc 4.0 was new. I don't remember the situtation exactly, but I think
it involved dynamic_cast across dynamic libraries. Anyway, I
discovered that Xcode was automatically setting "-fvisibility=hidden"
as a default option. Since my code did not use the gcc 4 visibility
extensions, I think everything got marked as hidden and it manifested
itself as breaking everything depending on dynamic_cast and
exceptions.

You might want to check to see if this option is enabled in your Xcode
settings and if it is, try disabliing it. At the time, I think I filed
a bug report suggesting this should be off by default, but I don't
know if this change was made or not.

-Eric
_______________________________________________
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: dynamic_cast failing weirdly
      • From: "Tim Conkling" <email@hidden>
  • Prev by Date: Re: CCashe & Xcode?
  • Next by Date: Re: dynamic_cast failing weirdly
  • Previous by thread: Re: dynamic_cast failing weirdly
  • Next by thread: Re: dynamic_cast failing weirdly
  • Index(es):
    • Date
    • Thread