I've been having trouble getting the following C++ program to work using the current 3.0 CVS. I've installed with --prefix=/usr, after purging all of the existing /usr/include/g++* directories. I'm on an i686-linux(2.4.3)-gnu(2.2.2) box. Here's the program: #include <iostream> int main() { cout << "hello, world!"; ; return 0; } Here's what I get. /usr/bin/g++ -v -Wall -save-temps test.C Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs Configured with: ../gcc/configure --host=i686-pc-linux-gnu --prefix=/usr --with-gnu-as --enable-shared --with-gnu-ld --enable-threads=posix gcc version 3.0 20010402 (prerelease) /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0/cpp0 -lang-c++ -D_GNU_SOURCE -D__GNUG__=3 -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -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__STDC_HOSTED__=1 -Wall -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ test.C test.ii GNU CPP version 3.0 20010402 (prerelease) (cpplib) (i386 Linux/ELF) ignoring nonexistent directory "/usr/include/g++-" ignoring nonexistent directory "/usr/include/g++-/i686-pc-linux-gnu" #include "..." search starts here: #include <...> search starts here: /usr/lib/qt/include /usr/local/include /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0/include /usr/i686-pc-linux-gnu/include /usr/include End of search list. test.C:1:20: iostream: No such file or directory Ok it seems that the g++ include files are no longer part of the default include search path, so I tried: /usr/bin/g++ -v -Wall -save-temps -I /usr/include/g++-v3/ test.C Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs Configured with: ../gcc/configure --host=i686-pc-linux-gnu --prefix=/usr --with-gnu-as --enable-shared --with-gnu-ld --enable-threads=posix gcc version 3.0 20010402 (prerelease) /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0/cpp0 -lang-c++ -D_GNU_SOURCE -D__GNUG__=3 -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -v -I /usr/include/g++-v3/ -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__STDC_HOSTED__=1 -Wall -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ test.C test.ii GNU CPP version 3.0 20010402 (prerelease) (cpplib) (i386 Linux/ELF) ignoring nonexistent directory "/usr/include/g++-" ignoring nonexistent directory "/usr/include/g++-/i686-pc-linux-gnu" #include "..." search starts here: #include <...> search starts here: /usr/include/g++-v3/ /usr/lib/qt/include /usr/local/include /usr/lib/gcc-lib/i686-pc-linux-gnu/3.0/include /usr/i686-pc-linux-gnu/include /usr/include End of search list. In file included from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/std_iostream.h:39:28: bits/c++config.h: No such file or directory In file included from /usr/include/g++-v3/bits/std_ios.h:39, from /usr/include/g++-v3/bits/std_ostream.h:39, from /usr/include/g++-v3/bits/std_iostream.h:40, from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/std_iosfwd.h:39:28: bits/c++config.h: No such file or directory In file included from /usr/include/g++-v3/bits/std_iosfwd.h:40, from /usr/include/g++-v3/bits/std_ios.h:39, from /usr/include/g++-v3/bits/std_ostream.h:39, from /usr/include/g++-v3/bits/std_iostream.h:40, from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/std_cwchar.h:39:28: bits/c++config.h: No such file or directory In file included from /usr/include/g++-v3/bits/std_cwchar.h:41, from /usr/include/g++-v3/bits/std_iosfwd.h:40, from /usr/include/g++-v3/bits/std_ios.h:39, from /usr/include/g++-v3/bits/std_ostream.h:39, from /usr/include/g++-v3/bits/std_iostream.h:40, from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/std_cstdio.h:39:28: bits/c++config.h: No such file or directory In file included from /usr/include/g++-v3/bits/std_iosfwd.h:41, from /usr/include/g++-v3/bits/std_ios.h:39, from /usr/include/g++-v3/bits/std_ostream.h:39, from /usr/include/g++-v3/bits/std_iostream.h:40, from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/stringfwd.h:39:28: bits/c++config.h: No such file or directory In file included from /usr/include/g++-v3/bits/char_traits.h:40, from /usr/include/g++-v3/bits/std_ios.h:41, from /usr/include/g++-v3/bits/std_ostream.h:39, from /usr/include/g++-v3/bits/std_iostream.h:40, from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/std_cstring.h:39:28: bits/c++config.h: No such file or directory In file included from /usr/include/g++-v3/bits/char_traits.h:41, from /usr/include/g++-v3/bits/std_ios.h:41, from /usr/include/g++-v3/bits/std_ostream.h:39, from /usr/include/g++-v3/bits/std_iostream.h:40, from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/fpos.h:42:24: bits/c++io.h: No such file or directory In file included from /usr/include/g++-v3/bits/std_ios.h:43, from /usr/include/g++-v3/bits/std_ostream.h:39, from /usr/include/g++-v3/bits/std_iostream.h:40, from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/localefwd.h:39:28: bits/c++config.h: No such file or directory /usr/include/g++-v3/bits/localefwd.h:40:55: bits/c++locale.h: No such file or directory In file included from /usr/include/g++-v3/bits/localefwd.h:42, from /usr/include/g++-v3/bits/std_ios.h:43, from /usr/include/g++-v3/bits/std_ostream.h:39, from /usr/include/g++-v3/bits/std_iostream.h:40, from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/std_string.h:39:28: bits/c++config.h: No such file or directory In file included from /usr/include/g++-v3/bits/stl_algobase.h:44, from /usr/include/g++-v3/bits/std_memory.h:20, from /usr/include/g++-v3/bits/std_string.h:43, from /usr/include/g++-v3/bits/localefwd.h:42, from /usr/include/g++-v3/bits/std_ios.h:43, from /usr/include/g++-v3/bits/std_ostream.h:39, from /usr/include/g++-v3/bits/std_iostream.h:40, from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/std_cstdlib.h:39:28: bits/c++config.h: No such file or directory In file included from /usr/include/g++-v3/bits/std_string.h:46, from /usr/include/g++-v3/bits/localefwd.h:42, from /usr/include/g++-v3/bits/std_ios.h:43, from /usr/include/g++-v3/bits/std_ostream.h:39, from /usr/include/g++-v3/bits/std_iostream.h:40, from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/basic_string.h:39:28: bits/atomicity.h: No such file or directory In file included from /usr/include/g++-v3/bits/localefwd.h:43, from /usr/include/g++-v3/bits/std_ios.h:43, from /usr/include/g++-v3/bits/std_ostream.h:39, from /usr/include/g++-v3/bits/std_iostream.h:40, from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/std_cctype.h:39:28: bits/c++config.h: No such file or directory In file included from /usr/include/g++-v3/bits/std_ios.h:45, from /usr/include/g++-v3/bits/std_ostream.h:39, from /usr/include/g++-v3/bits/std_iostream.h:40, from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/std_streambuf.h:39:28: bits/c++config.h: No such file or directory In file included from /usr/include/g++-v3/bits/locale_facets.h:41, from /usr/include/g++-v3/bits/basic_ios.h:36, from /usr/include/g++-v3/bits/std_ios.h:46, from /usr/include/g++-v3/bits/std_ostream.h:39, from /usr/include/g++-v3/bits/std_iostream.h:40, from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/std_ctime.h:39:28: bits/c++config.h: No such file or directory In file included from /usr/include/g++-v3/bits/basic_ios.h:36, from /usr/include/g++-v3/bits/std_ios.h:46, from /usr/include/g++-v3/bits/std_ostream.h:39, from /usr/include/g++-v3/bits/std_iostream.h:40, from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/locale_facets.h:53:31: bits/ctype_base.h: No such file or directory /usr/include/g++-v3/bits/locale_facets.h:348:33: bits/ctype_inline.h: No such file or directory In file included from /usr/include/g++-v3/bits/std_iostream.h:41, from /usr/include/g++-v3/iostream:2, from test.C:1: /usr/include/g++-v3/bits/std_istream.h:40:51: bits/std_limits.h: No such file or directory Sure enough, there is no bits/c++config.h file in /usr/include/g++-v3/bits, but there is one in /usr/include/g++-v3/i686-pc-linux-gnu/bits/ and if I link the file(s) there to the g++-v3/bits directory, most of the errors go, with the exception: /usr/bin/g++ -v -Wall -save-temps -I /usr/include/g++-v3/ test.C test.C: In function `int main()': test.C:3: `cout' undeclared (first use this function) test.C:3: (Each undeclared identifier is reported only once for each function it appears in.) David