This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RTTI (dynamic_cast)
- To: braden at endoframe dot com
- Subject: Re: RTTI (dynamic_cast)
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 02 Apr 1999 05:02:10 -0300
- Cc: "egcs at cygnus dot com" <egcs at cygnus dot com>
- References: <37047A32.F06A42F2@shadow.net>
On Apr 2, 1999, "Braden N. McDaniel" <braden@shadow.net> wrote:
> Is RTTI enabled by default in egcs (1.1.2)?
Yup
> I saw a switch for disabling RTTI, so I assumed it was, but I'm
> having difficulty getting a dynamic_cast to work.
Make sure your base class is polymorphic (i.e., it must have at least
one virtual member function)
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Brasil
{oliva,Alexandre.Oliva}@dcc.unicamp.br aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists