You shouldn't be #include'ing .cpp files, only .h ones.

When you compile, an example would be:

>>g++ -o myprog file1.cpp file2.cpp main.cpp

Alternatively, you can compile each source file seperately, and then link the objects together afterwards.