Problem with g++ in gcc version 3.0 20010402

David Ronis ronis@ronispc.chem.mcgill.ca
Fri Apr 6 05:33:00 GMT 2001


Alexandre Oliva writes:
 > On Apr  5, 2001, David Ronis <ronis@ronispc.chem.mcgill.ca> wrote:
 > 
 > > Alexandre Oliva writes:
 > >> On Apr  5, 2001, David Ronis <ronis@ronispc.chem.mcgill.ca> wrote:
 > >> 
 > >> > test.C:3: `cout' undeclared (first use this function)
 > >> 
 > >> Make it std::cout
 > 
 > > ignoring nonexistent directory "/usr/include/g++-"
 > > ignoring nonexistent directory "/usr/include/g++-/i686-pc-linux-gnu"
 > 
 > Do you still have the build tree around?  What is gcc_gxx_include_dir
 > set to in gcc/Makefile?

That's the problem.  Here's the setting:

gcc_gxx_include_dir = $(libsubdir)/$(unlibsubdir)/..`echo $(exec_prefix) | sed -
e 's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/include/g++-


 > > I added -I/usr/include/g++-v3 and it still doesn't compile.
 > 
 > Make it -isystem /usr/include/g++-v3, and add -isystem
 > /usr/include/g++-v3/i686-pc-linux-gnu too.

OK, I know that'll work.  [I'm just testing, and use 2.95.3 for
production still].

Thanks

David



More information about the Gcc-bugs mailing list