• 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 shared module boundaries?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ RTTI/dynamic_cast across shared module boundaries?


  • Subject: Re: C++ RTTI/dynamic_cast across shared module boundaries?
  • From: Zachary Pincus <email@hidden>
  • Date: Fri, 17 Feb 2006 10:11:30 -0600

Howard,

All of the typeinfo in every module is declared as 'weak external', e.g.:
00040370 (__DATA,__const_coal) weak external typeinfo for itk::ImageBase<2u>
0001b04c (__TEXT,__const_coal) weak external typeinfo name for itk::ImageBase<2u>


Is this as it should be? Does one lib need non-weak symbols to force the others to use their copy of the same?

Thanks for your help,

Zach


On Feb 17, 2006, at 9:34 AM, Howard Hinnant wrote:

On Feb 17, 2006, at 9:43 AM, Zachary Pincus wrote:

Is there any way I verify this with, say, otool?

Hmm... try inspecting the binaries with:

nm -m <object/so filename> | c++filt

Make sure the typeinfo information associated with the types you want to dynamic_cast are not tagged as "private" or "non-external".

-Howard

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40stanford.edu


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
References: 
 >C++ RTTI/dynamic_cast across shared module boundaries? (From: Zachary Pincus <email@hidden>)
 >Re: C++ RTTI/dynamic_cast across shared module boundaries? (From: Howard Hinnant <email@hidden>)
 >Re: C++ RTTI/dynamic_cast across shared module boundaries? (From: Zachary Pincus <email@hidden>)
 >Re: C++ RTTI/dynamic_cast across shared module boundaries? (From: Howard Hinnant <email@hidden>)

  • Prev by Date: Re: Command-R
  • Next by Date: Xcode running on Intel vs PPC
  • Previous by thread: Re: C++ RTTI/dynamic_cast across shared module boundaries?
  • Next by thread: Re: C++ RTTI/dynamic_cast across shared module boundaries?
  • Index(es):
    • Date
    • Thread