• 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: C++ RTTI/dynamic_cast across share module boundaries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ RTTI/dynamic_cast across share module boundaries


  • Subject: Re: C++ RTTI/dynamic_cast across share module boundaries
  • From: Marshall Clow <email@hidden>
  • Date: Tue, 19 Jan 2010 08:40:35 -0800

On Jan 19, 2010, at 8:27 AM, Mads Paulin wrote:

Hi,

I have hit what seems to be a very common problem when creating a plugin-based application utilizing the C++ dynamic_casting operator to down-cast a pointer in a dynamically loaded module.

As described in numerous places (e.g. here: http://lists.apple.com/archives/xcode-users/2006/Mar/msg00119.html) many other developers have experienced this since GCC compares type_info's by address instead of by comparing the name() strings, a pointer of class A in the main application does not dynamic_cast to a class A pointer in a loaded module.

Have you looked at <http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/CppRuntimeEnv/Articles/SymbolVisibility.html>
and/or <http://developer.apple.com/mac/library/technotes/tn2007/tn2185.html>  ?


-- Marshall

 _______________________________________________
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

References: 
 >C++ RTTI/dynamic_cast across share module boundaries (From: Mads Paulin <email@hidden>)

  • Prev by Date: C++ RTTI/dynamic_cast across share module boundaries
  • Next by Date: Re: what versioning system do you recommend?
  • Previous by thread: C++ RTTI/dynamic_cast across share module boundaries
  • Next by thread: Virgin, vanilla 10.6.2 + Xcode 3.2.1/iPhone SDK 3.1.2: crashes trying to view the "Getting started with Xcode" documentation
  • Index(es):
    • Date
    • Thread