I made 4 files but everytime I compile persontest.cpp, I get this:
1 2 3 4 5
/tmp/ccn9tigF.o: In function `main':
persontest.cpp:(.text+0x3e): undefined reference to `Person::Person(std::string, int)'
persontest.cpp:(.text+0x62): undefined reference to `Person::get_name()'
persontest.cpp:(.text+0x6e): undefined reference to `Person::get_age()'
collect2: error: ld returned 1 exit status
I need some help on this. For some reason, the program doesn't listen to the header file or something. I'm pretty sure I set everything right. Any suggestions?