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]

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


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