-
April 4th, 2013, 05:21 AM
#1
Problem with RTTI
What is wrong with this code
Code:
Obj<TCHAR>* obj = dynamic_cast<Obj<TCHAR>* >(I->objects[0]);
Which is resulting in this error
Code:
A dynamic cast is present, but the correct RTTI option is not specified.
-
April 4th, 2013, 05:42 AM
#2
Re: Problem with RTTI
Maybe you have to specify some copiler option to let it generate extra code to enable the dynamic_cast keyword to work?
At least, it is what IBM compiler requires: http://publib.boulder.ibm.com/infoce...2Fruoptrtt.htm
Victor Nijegorodov
-
April 4th, 2013, 06:14 AM
#3
Re: Problem with RTTI
Originally Posted by VictorN
What are those compiler options that I have to specify?
-
April 4th, 2013, 06:19 AM
#4
Re: Problem with RTTI
How could I know it?
Ask your compiler documentation! Read its Help...
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|