jim lee
Well-known member
Ok, can someone explain what the -fno-rtti compiler directives are? And, why they think "dynamic_cast" is an error? I see the teensy uses these and the UNO doesn't. I've read -here- that the UNO allows sloppy compiling but this kinda' has me stuck.
This is the actual routine. Everything in the list are drawObj pointers. Some can be up-cast to the derived calcButton pointers. I can show more code. But where does it stop? There is so much of it.
OK, been looking things up.
Why is RTTI turned off? What am I missing here?
Thanks!
-jim lee
Code:
void change2ndFx(boolean setClear) {
drawObj* node;
calcButton* trace;
node = viewList.theList;
while(node) {
trace = dynamic_cast<calcButton*>(node);
if (trace) trace->setSecond(setClear);
node = (drawObj*)node->next;
}
}
This is the actual routine. Everything in the list are drawObj pointers. Some can be up-cast to the derived calcButton pointers. I can show more code. But where does it stop? There is so much of it.
OK, been looking things up.
RTTI is short for Run-time Type Identification. RTTI is to provide a standard way for a program to determine the type of object during runtime.
Why is RTTI turned off? What am I missing here?
Thanks!
-jim lee
Last edited: