Mail Archives: djgpp/1999/07/09/18:23:29
>I am having a problem with a class and a virtual function. I'll call my
class X. I derived class Y from X, and then Z from Y. I have a virtual
function in X, and then redefined it in Y. In Z, I actually redefine the
virtual class and use it. I made a driver program to test class Z, and made
a project with it. Both files compiled into their respective .o files, but
when DJGPP went to compile into the .exe, it said that it couldn't find the
virtual table for X, and Y. Any ideas what is going on? Thanks.
this often happens if you don't specify a constructor AND destructor WITH
some sort of body (even an empty body.) i have this problem occasionally,
and it's always because i didn't put in a destructor.
-={C}=-
- Raw text -