This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with headers of new library
- From: Ian Lance Taylor <ian at airs dot com>
- To: nickohel <nickohel at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 18 Apr 2006 21:21:42 -0700
- Subject: Re: Problem with headers of new library
- References: <3967457.post@talk.nabble.com>
nickohel <nickohel@yahoo.com> writes:
> I 've recently downloaded and installed the opecv library.The problem is
> that i cant use any of the library header files because the path the library
> is installed is not searched by the gcc for headers.I know i can use the
> -idirafter and -I options but i want a way to permantently make gcc look for
> headers in the path the library is installed (well actually it's a tree of
> paths) .Is there any conf file i must change or a command or something?Any
> help is much appreciated.
You can set the environment variables CPATH, C_INCLUDE_PATH, and/or
CPLUS_INCLUDE_PATH.
http://gcc.gnu.org/onlinedocs/gcc-4.1.0/cpp/Environment-Variables.html#Environment-Variables
Ian