Hi.
I have a C++ book right in front of me here, and it suggest making a destructor like this:
Code:class SomeClass { public: ~SomeClass (); // Destructor definition }; SomeClass::~SomeClass () { }
But when i do this, exactly like the book says, i get this one:
Looks like it doesent allow me to first define it, and then implement it...Code:multiple definition of `SomeClass::~SomeClass()' first defined here ld returned 1 exit status Makefile.win [Build Error] [YAPI.exe] Error 1
Is it that this isnt, allowed, and that my C++ book is wrong?
Or is it a syntax error somewhere?![]()



LinkBack URL
About LinkBacks




CornedBee
!