|
|
"my_project.h"
so i wouldn't always have to make sure if those my_project.h and my_project.cpp files are in the same directory as main.cpp"my_project.h"
<iostream>
works because compiler silently adds another path to search system headers. If you want to look for files which are not in your project directory, add compiler command telling it so. For GCC it will be -I<directory>