I also use Dev-Cpp and the code compiles fine with the exception that in your code, you're constructing the variable d incorrectly:

Code:
Date d();
std::cout << "Date object: " << d << std::endl;
It should be
Code:
Date d;
not
Code:
Date d()
, because Date d() means you're declaring a function called d that returns type Date, and that's not exactly what you want to do...