Re: dynamic_cast failing weirdly
Re: dynamic_cast failing weirdly
- Subject: Re: dynamic_cast failing weirdly
- From: "Tim Conkling" <email@hidden>
- Date: Wed, 25 Jul 2007 18:11:14 -0400
I've recompiling my application and all its libraries with the following build settings:
OTHER_CPLUSPLUSFLAGS = -fvisibility-ms-compat
GCC_SYMBOLS_PRIVATE_EXTERN = NO
GCC_INLINES_ARE_PRIVATE_EXTERN = NO
I've also tried explicitly making the particular classes that are affected visible, using the:
class __attribute__ ((visibility("default"))) Foo {};
method.
Nothing has worked yet. In all the emails I've read about this issue, one of these methods has solved the problem.
Tim
On 7/25/07, E. Wing <
email@hidden> wrote: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 (
This email sent to email@hidden
_______________________________________________
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