N
Neo
I have the following code structure-
class A {
public:
virtual void foo_a()=0;
};
class B {
public:
virtual void foo_b()=0;
};
class AB: public A, public B {
public:
void foo_a(){...}
void foo_b(){...}
AB(){...}
};
And further I have pointers to objects of class AB in my other modules.
Now I am getting multiples of this error: "Undefined reference to VTT
for AB". I have taken care not to leave any functions undefined which
are declared in abstract classes A and B. I need help badly in
resolving this as I am new to c++.
thanks,
Neo
class A {
public:
virtual void foo_a()=0;
};
class B {
public:
virtual void foo_b()=0;
};
class AB: public A, public B {
public:
void foo_a(){...}
void foo_b(){...}
AB(){...}
};
And further I have pointers to objects of class AB in my other modules.
Now I am getting multiples of this error: "Undefined reference to VTT
for AB". I have taken care not to leave any functions undefined which
are declared in abstract classes A and B. I need help badly in
resolving this as I am new to c++.
thanks,
Neo