[LCP]stdio.h reference

Erik Mouw J.A.K.Mouw at its.tudelft.nl
Wed Jan 9 19:53:05 UTC 2002


On Wed, Jan 09, 2002 at 06:39:10AM +0200, Madhav M. wrote:
>  Thanks to all for sharing their knowledge.
> I think, i couldn't put my question properly...i myself messed up the question :-(. Sorry for that.
> 
> actually I was trying to find out, 
> if I'm not specifying path explicitly at compile time
> i.e $cc -I/usr/include sample.c....but instaed I'm using following
>  $cc sample.c
> then how stdio.h file is been searched?

Because of the built-in include paths. Try "gcc -v sample.c" and gcc
will show them.

>  ya, Vincent, I was not aware of the following point that you mentioned...
> ====================================================
> Vincent wrote :
> The compiler can also have hardcoded paths
> >for system includes (usually /usr/include or /usr/local/include).
> ====================================================
> 
> Also I checked for INCLUDE & INCLUDE_PATH, but those doesn't have
> path for /usr/include on my machine.

C compilers don't care about the INCLUDE and INCLUDE_PATH environment
variables.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty
of Information Technology and Systems, Delft University of Technology,
PO BOX 5031, 2600 GA Delft, The Netherlands  Phone: +31-15-2783635
Fax: +31-15-2781843  Email: J.A.K.Mouw at its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/



More information about the linuxCprogramming mailing list