public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* g++ 3.0.3 can't find iostream.h: prefix vs. exec-prefix ?
@ 2002-02-13 12:13 Chris Majewski
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Majewski @ 2002-02-13 12:13 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: g++ 3.0.3 can't find iostream.h: prefix vs. exec-prefix ?
       [not found]     ` <87k7th87c3.fsf@gmx.net>
@ 2002-02-13 14:22       ` Chris Majewski
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Majewski @ 2002-02-13 14:22 UTC (permalink / raw)
  To: Felix Natter; +Cc: gcc-help

Felix Natter <fnatter@gmx.net> writes:
> Just one more idea: you shouldn't configure/build gcc in the src-dir.

I don't. I'm following the instructions. Has *anyone* got g++ to work,
given separate --prefix and --exec-prefix? 

-chris

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-02-13 20:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-13 12:13 g++ 3.0.3 can't find iostream.h: prefix vs. exec-prefix ? Chris Majewski
     [not found] <ymhy9hxb3k0.fsf@okocim.cs.ubc.ca>
     [not found] ` <87vgd189lc.fsf@gmx.net>
     [not found]   ` <ymhk7thb2km.fsf@okocim.cs.ubc.ca>
     [not found]     ` <87k7th87c3.fsf@gmx.net>
2002-02-13 14:22       ` Chris Majewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).