This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5997: CPLUS_INCLUDE_PATH not working properly
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
zw