Originally Posted by
Daved
No, not quite right unfortunately.
You really should never #include a cpp file (there are some advanced cases where you might, but don't worry about those now).
The solution is to #include "Person.h" in both cpp files that use the Person class. Then, add both cpp files to your makefile or command line. You need to compile both, then link them together.
BTW, as laserlight suggested earlier, it's not good practice to put the using namespace std in your header file like that. It's not a big deal in small projects, it's just something you should know.