Destructors and Constructors on classes
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:
Code:
multiple definition of `SomeClass::~SomeClass()'
first defined here
ld returned 1 exit status
Makefile.win
[Build Error] [YAPI.exe] Error 1
Looks like it doesent allow me to first define it, and then implement it...
Is it that this isnt, allowed, and that my C++ book is wrong?
Or is it a syntax error somewhere? :confused: