What is wrong with this code
Which is resulting in this errorCode:Obj<TCHAR>* obj = dynamic_cast<Obj<TCHAR>* >(I->objects[0]);
Code:A dynamic cast is present, but the correct RTTI option is not specified.
Printable View
What is wrong with this code
Which is resulting in this errorCode:Obj<TCHAR>* obj = dynamic_cast<Obj<TCHAR>* >(I->objects[0]);
Code:A dynamic cast is present, but the correct RTTI option is not specified.
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
How could I know it?
Ask your compiler documentation! Read its Help...