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: 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.


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