This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
g++ 3.0.3 can't find iostream.h: prefix vs. exec-prefix ?
- From: Chris Majewski <majewski at cs dot ubc dot ca>
- To: gcc-help at gcc dot gnu dot org
- Date: 13 Feb 2002 11:12:47 -0800
- Subject: g++ 3.0.3 can't find iostream.h: prefix vs. exec-prefix ?
Hello, here's what happens:
configure --prefix=/cs/local/generic/lib/pkg/gcc-3.0.3 \
--exec-prefix=/cs/local/lib/pkg/gcc-3.0.3
helloworld.c compiles fine
helloworld.c++ says:
hello-world.c++:1:22: iostream.h: No such file or directory
hello-world.c++: In function `int main()':
hello-world.c++:6: `cout' undeclared (first use this function)
hello-world.c++:6: (Each undeclared identifier is reported only once for each
function it appears in.)
hello-world.c++:6: `endl' undeclared (first use this function)
How can I tweak the makefile so the right include/ directories get
searched? Should probably be
/cs/local/generic/lib/pkg/gcc-3.0.3/include
but what do I know. My suspicion is the gcc build is confused by the
fact that my exec-prefix is completely different from my prefix.
chris