I have a problem when defining a pure virtual function in G++
here's a sample code:
virtual void print() = 0
{ cout << "Test" << endl; }
the code works without a glitch in VC++..
, but when compiling under GCC it prints the error message:
error: Function definition with a pure virtual function..
Is pure virtual function definitions in G++ are prohibited?!!
and if it is prohibited is there another approach
Thanks for any help..