Re: C++ RTTI/dynamic_cast across shared module boundaries?
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