This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Alternative of dynamic_cast
- From: "Jyotirmoy Das" <Jyotirmoy_Das at infosys dot com>
- To: "Falk Hueffner" <falk dot hueffner at student dot uni-tuebingen dot de>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 2 Jan 2004 17:48:41 +0530
- Subject: RE: Alternative of dynamic_cast
Actually there is symbol resolution problem with dynamic_cast between gcc C++ runtime lib and libjvm. For this reason, my application crashes. The libjmv.so provided by IBM is compiled with gcc 2.95 and my application is running on gcc 2.96. I can't change libjvm or to downgrade the compiler version of my application. As a result, application dumps the core at runtime during the symbol resolution of dynamic_cast. So i need some alternative of that.
-----Original Message-----
From: Falk Hueffner [mailto:falk.hueffner@student.uni-tuebingen.de]
Sent: Friday, January 02, 2004 5:27 PM
To: Jyotirmoy Das
Cc: gcc-help@gcc.gnu.org
Subject: Re: Alternative of dynamic_cast
"Jyotirmoy Das" <Jyotirmoy_Das@infosys.com> writes:
> I don't want to use dynamic_cast. Is there any alternative of
> dynamic_cast which has the same functionality ?
No.
> Or any pointer to write the implementation of dynamic_cast in class
> or as global function ?
Not possible in a portable way. Why not just use dynamic_cast?
--
Falk