Umm....I use Dev-C++ as well, and the code you posted in your very first post compiles and runs fine for me. Your book was correct. Your error is somewhere else. If you get a multiple definition error, then that's just what it is. You've probably #included the .h file more than once, therefore, it is defined/declared more than once. Here's what I have.
main.cpp
Code:
#include <cstdlib>
#include <iostream>
using namespace std;
#include "class.h"
int main(int argc, char *argv[])
{
system("PAUSE");
return EXIT_SUCCESS;
}
class.h
Code:
class SomeClass
{
public:
~SomeClass(); // Destructor declaration
};
SomeClass::~SomeClass()
{
}