• 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: gcc 4.0, a framework, and dynamic_cast problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: gcc 4.0, a framework, and dynamic_cast problems
      • From: Steve Baxter <email@hidden>
References: 
 >gcc 4.0, a framework, and dynamic_cast problems (From: Anton Leuski <email@hidden>)

  • Prev by Date: gcc 4.1.x
  • Next by Date: Re: Dead code stripping
  • Previous by thread: gcc 4.0, a framework, and dynamic_cast problems
  • Next by thread: Re: gcc 4.0, a framework, and dynamic_cast problems
  • Index(es):
    • Date
    • Thread