c++/5997: CPLUS_INCLUDE_PATH not working properly

Neil Booth neil@daikokuya.demon.co.uk
Mon Mar 18 11:36:00 GMT 2002


The following reply was made to PR c++/5997; it has been noted by GNATS.

From: Neil Booth <neil@daikokuya.demon.co.uk>
To: Zack Weinberg <zack@codesourcery.com>
Cc: jbakker@rssd.esa.int, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Subject: Re: c++/5997: CPLUS_INCLUDE_PATH not working properly
Date: Mon, 18 Mar 2002 19:33:17 +0000

 Zack Weinberg wrote:-
 
 > On Mon, Mar 18, 2002 at 06:25:00PM +0000, Neil Booth wrote:
 > > 
 > > I *think* this goes back 3 years (before my time!) to your change to
 > > cppinit.c 1.5 -> 1.6.  Would you have a look at it?  We used to put
 > > the paths in the env var before the default paths.  Now we do something
 > > that is a little different I think.
 > 
 > I'm not seeing any problem at all... could you please tell me what's
 > going wrong in your environment?
 > 
 > ~/f $ CPLUS_INCLUDE_PATH=`pwd`/include g++ -c -H main.cc ; echo $?
 > /home/zack/f/include/foo.h
 > 0
 > ~/f $ CPLUS_INCLUDE_PATH=`pwd`/include g++-3.0 -c -H main.cc ; echo $?
 > . /home/zack/f/include/foo.h
 > 0
 > ~/f $ CPLUS_INCLUDE_PATH=`pwd`/include ~/src/gcc/b/vanilla/gcc/g++ \
 >   -B ~/src/gcc/b/vanilla/gcc/ -H -c main.cc ; echo $?
 > . /home/zack/f/include/foo.h
 > 0
 
 You're quite right - I'd not tested the PR, assuming it must be right.
 I just looked for when the last time this area of code was changed.  I
 can't reproduce it either.  jbakker, can you elaborate on what problem
 you're seeing?
 
 Neil.



More information about the Gcc-prs mailing list