This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


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

About search paths


Hello

I was unable to compile a file with this code:

...
#include <iostream>
...


the error was:

iostream: No such file or directory

the output of gcc -E -v - is:

---------------------------------------------------------------

Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: ./configure --prefix=/usr --enable-threads
Thread model: posix
gcc version 3.0
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.0/cpp0 -lang-c -v -D__GNUC__=3 
-D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux 
-D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix 
-D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 
-D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ -
GNU CPP version 3.0 (cpplib) (i386 Linux/ELF)
ignoring nonexistent directory 
"/usr/lib/gcc-lib/i686-pc-linux-gnu/3.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.0/include
/usr/include
End of search list.

---------------------------------------------------------------


I think there are some directories missing from the search path, e.g.:

/usr/include/g++/bits
/usr/include/g++/i686-pc-linux-gnu
/usr/include/g++/backward


My question is, how should I configure gcc?

Thanks


  Juan Pablo

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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