This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RTTI (dynamic_cast)


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]