Quote:
Originally Posted by mikets
Yes, you are right, it is the typeinfo and vtable. But what does it mean if these symbols are missing? TrcRobot is the base class of MyRobot. Why would the vtable of the TrcRobot be missing?
|
You have not included the actual code, so it's a little hard to say, but I would speculate that you don't have a virtual destructor defined for TrcRobot. Since the RobotBase and SimpleRobot destructors are virtual and TrcRobot inherits from them and is then inherited from by MyRobot, you must have a virtual destructor at all levels of the hierarchy. Leaving it out of one class in the middle won't work. The default destructor is not virtual.
-Joe