This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: not finding header files...
- From: "Rupert Wood" <me at rupey dot net>
- To: <jun at alumni dot carnegiemellon dot edu>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 7 Aug 2002 17:53:45 +0100
- Subject: RE: not finding header files...
Jun Goo wrote:
> i've just finished installing a copy of gcc 3.1.1 onto my computer
> and instead of replacing 2.96 (the previously installed version of
> gcc), i installed 3.1.1 under /usr/local (actual g++, gcj, g77, etc
> files under /usr/local/bin)
:
> i believe the header files for 3.1.1 are under
> /usr/include/g++-3
They're probably under /usr/local/include/g++-3.
The best way to debug this sort of thing is to compile something simple,
e.g. your hello.cc, with the -v switch:
g++ -v hello.cc
GCC will, amongst other things, dump its search directory path to the
console so you can see where it's looking.
Good luck,
Rup.