I have a header and 2 source files. I want to link the functions from Car.cpp to the header file Car.h, but when i run the MainFile.cpp there seems to be the Error : Undefined reference to 'Car::<functions>'. I followed the video from: https://www.youtube.com/watch?v=O2VlTRZY3yc&index=1&list=PL0E9BC89BD7E5CA43 .
If you are using the command line, you need to include car.cpp in your rule: $ g++ Main.cpp Car.cpp -o my_program
If you are using an IDE, you made some mistake and car.cpp is not actually in the project.
Btw, Car.h ( and Car.cpp ) don't need iostream. You should take line 1-3 out of Car.h. If, at some point Car.cpp does require isosteam, you should put the include in Car.cpp
As pointed out by Lowest0ne, at this time you aren't using anything from iostream or the standard namespace in Car.h or Car.cpp so there is no need to even have them in it. You should only include headers in files where they are actually used. While I use the global namespace in examples to save typing, I recommend never using it outside of the file that has your main function in it.