Re: gcc 4.0, a framework, and dynamic_cast problems
Re: gcc 4.0, a framework, and dynamic_cast problems
- Subject: Re: gcc 4.0, a framework, and dynamic_cast problems
- From: Thomas Engelmeier <email@hidden>
- Date: Tue, 18 Apr 2006 11:33:16 +0200
On 17.04.2006, at 02:57, Anton Leuski wrote:
1. is this a bug? it looks like one to me, because everything works
correctly under gcc-3.3.
2. is this is a known problem? Is there a solution?
It is probably another annoying problem variant of the way GCC
composes it's typeids.
In contrary to almost any other compiler it is not an (eventually
hashed) ASCII string with the object name, but an unique object per
binary (i.e. one in your bundle / framework and on in the main app)
=> depending on the context the inlined version uses a different
typeid than the non-inlined.
The way to solve it is to use global "first come, first serve" symbol
resolution for loaded libraries / bundles, e.g. RTLOAD_GLOBAL for
dlcompat loaded dylibs.
Regards,
Tom_E
_______________________________________________
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