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]

Re: How does GCC look for includes?


llewelly@dbritsch.dsl.xmission.com wrote:
> 
> On Sun, 7 May 2000, Ivan Martinez wrote:
> 
> >       Hello all. Could you tell me how GCC looks for default include files?.
> > Does it always look in "/usr/include" or the directories are specified
> > in any configuration file?. When it looks in a directory, it doesn't
> > necessarily looks in its subdirectories, does it?. Many thanks.
> >
> 
> If you add '-v' to your command line, gcc will display the directories
>   searched for include files, in the order they are searched in.
> 
> For flags that affect where gcc searches for include files, see
>   http://gcc.gnu.org/onlinedocs/gcc_2.html#SEC11

	Many thanks for your persistent help. I mean, if I just type "gcc
myfile.c", without any "-I", does "gcc" look for include files
anywhere?. In case it does, what tells gcc where to look?. Thanks again.

-- 
Ivan Martinez (Rodriguez)
BEng in Software Engineering - MEng student
http://www.student.dtu.dk/~u990873
"Got fabes?"

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