Create <MyLibrary> instead of "MyLibrary.h"

Jan 29, 2015 at 11:11am
Hi, as u all see by looking at this title i want to create library like
1
2
<iostream>
<cstdlib>

instead of "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

Everything i have searched so far ends up with including "my_project.h"

Maybe anyone could tell me in what book i could find this stuff?
Jan 29, 2015 at 11:27am
<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>

If ypu are using IDE, there is probably an option to add additional include path in its GUI.
Jan 29, 2015 at 12:36pm
Thanks for reply man, i will check this out :)
Topic archived. No new replies allowed.