re: An odd behavior of dynamic_cast

2005-12-22 Thread Shin-ichi MORITA
Hi Dan, > I think the right place for this question might have > been gcc-help (http://gcc.gnu.org/ml/gcc-help/). Thanks to Ben, I've already posted the same question to gcc-help. > > [ Why doesn't dynamic_cast work when I dlopen a > shared library? ] I've checked out http://gcc.gnu.org/faq.htm

An odd behavior of dynamic_cast

2005-12-20 Thread Shin-ichi MORITA
Hi all, This is my first post. :-) # I could not find a mailing list dedicated to c++ at gcc.gnu.org. # So I post this mailing list. Recently, I found an odd behavior about dynamic_cast across shared libraries. This is my box: linux kernel-2.4.21 gcc-3.4.3 (Check out my test_case.tar.bz2

An odd behavior of dynamic_cast

2005-12-19 Thread Shin-ichi MORITA
Hi all, This is my first post. :-) Recently, I found an odd behavior about dynamic_cast across shared libraries. This is my box: linux kernel-2.4.21 gcc-3.4.3 (Check out my test_case.tar.bz2 for complete source codes.) I defined these classes and functions in libbase.so: struct Base