g++ and dynamic_cast
Mihai Donțu
mihai.dontu@gmail.com
Fri Sep 19 00:36:00 GMT 2008
Hi,
Assuming I have a program that loads two shared objects (liba.so and libb.so),
is there any way that I can make dynamic_cast work in libb.so for an object
obtained from liba.so, without loading liba.so and libb.so with dlopen(...|
RTLD_GLOBAL)?
Currently, dynamic_cast returns NULL if the shared object (plugin) is loaded
with dlopen("liba.so", RTLD_LAZY) (some rtti nastiness).
I'm using gcc 3.2.2 and I can't update to gcc 4.x.
Thanks,
--
Mihai DonÈu
More information about the Gcc-help
mailing list