From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25884 invoked by alias); 20 Mar 2002 10:16:08 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 25848 invoked by uid 71); 20 Mar 2002 10:16:04 -0000 Date: Wed, 20 Mar 2002 02:16:00 -0000 Message-ID: <20020320101604.25843.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Jorgo Bakker Subject: Re: c++/5997: CPLUS_INCLUDE_PATH not working properly Reply-To: Jorgo Bakker X-SW-Source: 2002-03/txt/msg00748.txt.bz2 List-Id: The following reply was made to PR c++/5997; it has been noted by GNATS. From: Jorgo Bakker To: Neil Booth Cc: Zack Weinberg , gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org Subject: Re: c++/5997: CPLUS_INCLUDE_PATH not working properly Date: Wed, 20 Mar 2002 11:14:38 +0100 That would do the trick, thanks ;-). You may want to consider either to reimplement the build config for solaris or to redoc CPLUS_INCLUDE_PATH, C_INCLUDE_PATH etc..., as it now is confusing (different behavior) and misleading. Thanks for your help. Jorgo Bakker Neil Booth wrote: > Zack Weinberg wrote:- > > > It is reading the header file you asked it to, but interpreting that > > file as a "system header" - and on sparc-sun-solaris2.x, "system > > headers" get treated as wrapped in an implicit extern "C". > > In that case, would the environment variable that is now documented > in 3.1 and 3.2, "CPATH", work instead? GCC has supported it for a long > time, it just hasn't been documented. It treats its path components as > if specified with -I. > > http://gcc.gnu.org/onlinedocs/cpp/Environment-Variables.html > > Neil.