This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with headers of new library


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]