Date: Wed, 19 Jul 2000 14:25:53 -0400 (EDT) Message-Id: <200007191825.OAA08689@indy.delorie.com> From: Eli Zaretskii To: martin AT loewis DOT home DOT cs DOT tu-berlin DOT de CC: mrs AT windriver DOT com, gcc AT gcc DOT gnu DOT org, djgpp-workers AT delorie DOT com In-reply-to: <200007181835.UAA00972@loewis.home.cs.tu-berlin.de> (martin AT loewis DOT home DOT cs DOT tu-berlin DOT de) Subject: Re: GCC headers and DJGPP port References: <200007171736 DOT KAA29313 AT kankakee DOT wrs DOT com> <200007171834 DOT OAA06211 AT indy DOT delorie DOT com> <200007172102 DOT XAA07817 AT loewis DOT home DOT cs DOT tu-berlin DOT de> <200007180810 DOT EAA06916 AT indy DOT delorie DOT com> <200007181835 DOT UAA00972 AT loewis DOT home DOT cs DOT tu-berlin DOT de> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Tue, 18 Jul 2000 20:35:44 +0200 > From: "Martin v. Loewis" > > I'm not talking about C, I'm talking about C++. If djgpp does not use > __null for NULL, then it can't have the features that g++ has on other > systems. Sorry, my wording was inaccurate and misleading. The problem is with C++ programs that include or (or stddef.h etc.) after C++ headers such as : these define NULL, and GCC then complains about its redifinition. > I'm confused what question you are asking. Are you asking why GCC > installs its headers? It seems there has been a misunderstanding; I apologize for whatever part of it that I'm responsible for. Yes, the actual problem is that GCC installs its headers in a way that cause them to be used before the system headers. A related problem is that GCC uses its own versions of stddef.h, limits.h, and other headers instead of the system headers when GCC is built. We were worried that using headers that are different from the system headers might produce buggy GCC binaries, due to conflicts with libc.a against which the native DJGPP port is linked. Our impression was that these two issues are connected, and that GCC wants both to be built and used with its own versions of some of the system headers.