This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Conflict in __dynamic_cast symbol
- From: "Misra, Aveek" <amisra at netegrity dot com>
- To: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Date: Thu, 11 Sep 2003 15:10:32 -0400
- Subject: Conflict in __dynamic_cast symbol
I have a really messy problem on my hand. I have C++ application which is
compiled with gcc 3.2.1 on Linux Advanced Server 2.1. One of the libraries
is linked with the JVM library libjvm.sl. We are making use of the
dynamic_cast operator inside our code. This shows up as the symbol
__dynamic_cast in libstdc++.so. However a symbol of the same name is also
present in libjvm.sl. This causes a huge mess during runtime when the
__dynamic_cast of libjvm.sl gets invoked instead of the one in C++ runtime
lib and we get a core dump. How do we solve this issue? We cannot change the
version of the JVM
Thanks
Aveek