Linking Libraries Help

I would like to change the directories where g++ searches for linked libraries permanently. Basically I want to add a few directories where third party libraries are to be found so that I don't have to use the -I every time I compile said programs. If this is possible to do, how is it done?
don't you do this with make files ?
have a search but I am pretty sure
I'm building a small library. I want to have gcc automatically look in additional directories for header files and the like. That way I can refer to the packages as if they were normal packages without having to include and remember the full path name to each package and when I compile I do not have to include the -I /pathto3rdpartyhearder
Many settings for GCC can be controlled with environment variables.
http://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
Topic archived. No new replies allowed.