g++ and dynamic_cast

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux