Are you using g++
or some other compiler?
In g++
RTTI is enabled by default IIRC, and you can disable it with -fno-rtti
. To test whether it is active or not use dynamic_cast
or typeid
UPDATE
I believe that HPUX’s aCC
/aC++
also has RTTI on by default, and I am unaware of a way to disable it. Check your man
pages.