This is the mail archive of the gcc@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: why std C header files are missing from my GCC 3.3 build ?


On Fri, Jun 13, 2003 at 08:18:21AM -0700, Ananth Durbha wrote:
> Summary: Unable to figure out why GCC 3.3 make did not
> install std c header files (like stdio.h). Need help
> to identify if they got installed elsewhere or if its
> a problem with my build. C++ header were installed
> allright in <target>/include/c++/3.3 directory.
> 
> 
> Description:
> 
> Recently I downloaded GCC 3.3 source files and
> compiled on my i686 machine under Linux OS. 
> 
> I installed in the target directory
> ~ananth/tools/gcc-3.3
> 
> Then I wrote a simple a "Hello World" C program
> (test.c) and compiled is as follows
> 
> > tools/gcc-3.3/bin/gcc -I
> tools/gcc-3.3/include/c++/3.3 -L tools/gcc-3.3/lib -H
> test.c
> 
> The location of some of the header files it picked
> surprised me. They were not from where I installed but
> instead from /usr/include  where I d previous version
> of gcc installed. This I noticed only for the
> following header files ( stdio.h, features.h,
> sys/cdefs.h, gnu/stubs.h, bits/types.h, libio.h,
> _G_config.h, bits/stdio_lim.h )
> 
> Interestingly when I tried to look for these files
> under my gcc 3.3 installation root, I didn't find
> them!
> Where do the std c heeader files get installed ? Does
> gcc 3.3 come with them ?
> 
> I would appreciate if someone can help me understand
> the problem here.

These headers come from the C Library, not from GCC at all.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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