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.
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.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]