Can anybody tell me how to activate RTTI in c++ when working on unix.
I heard that it can be disabled and enabled.
on my unix environment,how could i check whether RTTI is enabled or disabled?
I am using the aCC compiler on HPUX.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 usedynamic_castortypeidUPDATE
I believe that HPUX’s
aCC/aC++also has RTTI on by default, and I am unaware of a way to disable it. Check yourmanpages.