Mail Archives: djgpp/1995/06/17/19:22:25
Hello!
I've a little problem with DJGPP 2.6.3 and pure virtual functions. Compiling
the source (down there) the compiler gives me a
undefinded reference to '__pure_virtual'.
How can I define/declare a function as PURE VIRTUAL and overwrite it in a
derived class?
The guys in the german C_PLUSPLUS.GER couldn't help me. Is it a bug in GNU
C/C++?
cu Peter
Peter_Schuette AT ks DOT fido DOT de
#include <iostream.h>
class tVater {
public:
tVater () {}
virtual ~tVater () {}
virtual void egal() = 0;
};
class tSohn : public tVater {
public:
tSohn () {}
virtual ~tSohn () {}
virtual void egal();
};
void tSohn::egal() {
cout << "juhu" << endl;
}
main() {
tSohn s;
}
- Raw text -