This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with g++ in gcc version 3.0 20010402
Phil Edwards writes:
>
> If you build the exact same sources, using the exact same configure
> options, but using a different --prefix, does the same problem occur?
> Use a brand new (i.e., empty) directory for the choice of --prefix, like
> /tmp/this_is_a_test, and see what happens.
I rebuilt/reinstalled with the prefix set to /tmp/gcc. I get the same
error, except the beginning of the path is changed as expected.
Here's the log:
David
/tmp/gcc/bin/g++ -v test.C
Reading specs from /tmp/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: ../gcc/configure --host=i686-pc-linux-gnu --prefix=/tmp/gcc --with-gnu-as --enable-shared --with-gnu-ld --enable-threads=posix
gcc version 3.0 20010402 (prerelease)
/tmp/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.0/cc1plus -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 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ test.C -D__GNUG__=3 -D_GNU_SOURCE -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase test.C -version -o /tmp/ccHctBue.s
GNU CPP version 3.0 20010402 (prerelease) (cpplib) (i386 Linux/ELF)
GNU C++ version 3.0 20010402 (prerelease) (i686-pc-linux-gnu)
compiled by GNU C version 3.0 20010402 (prerelease).
ignoring nonexistent directory "/tmp/gcc/include/g++-"
ignoring nonexistent directory "/tmp/gcc/include/g++-/i686-pc-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/qt/include
/usr/local/include
/tmp/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.0/include
/tmp/gcc/i686-pc-linux-gnu/include
/usr/include
End of search list.
test.C:1:20: iostream: No such file or directory
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.)
{ronispc:44}