From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6420 invoked by alias); 11 Apr 2002 19:36:02 -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 6405 invoked by uid 71); 11 Apr 2002 19:36:01 -0000 Date: Thu, 11 Apr 2002 12:36:00 -0000 Message-ID: <20020411193601.6399.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Phil Edwards Subject: Re: c++/6257: C-library symbols enter global namespace Reply-To: Phil Edwards X-SW-Source: 2002-04/txt/msg00623.txt.bz2 List-Id: The following reply was made to PR c++/6257; it has been noted by GNATS. From: Phil Edwards To: marc-oliver.gewaltig@hre-ftr.f.rd.honda.co.jp Cc: gcc-gnats@gcc.gnu.org Subject: Re: c++/6257: C-library symbols enter global namespace Date: Thu, 11 Apr 2002 15:35:31 -0400 On Thu, Apr 11, 2002 at 04:16:58PM -0000, marc-oliver.gewaltig@hre-ftr.f.rd.honda.co.jp wrote: > >Originator: marc-oliver.gewaltig@hre-ftr.f.rd.honda.co.jp > >Release: unknown-1.0 You need to give an actual version number here... the situation is better with GCC 3.x but is still problematic. If you are using 2.x then the library is very outdated. > However, g++ puts C symbols in the global namespace, > even if included via headers. Yes, we know. The problem is almost impossible to solve without control over the C library. Since we don't provide a C library -- your system vendor gives you that -- we cannot control its contents. Various ideas have been proposed, but nobody has had time to implement them. > >Fix: > Put all C symbols in the namespace std, if included > by headers. You do realize that this answer was completely useless? "Fix the problem" is an obvious and unhelpful response to "How to fix?" Now, if you have a /patch/, then that would be very helpful. :-) Phil -- If ye love wealth greater than liberty, the tranquility of servitude greater than the animating contest for freedom, go home and leave us in peace. We seek not your counsel, nor your arms. Crouch down and lick the hand that feeds you; and may posterity forget that ye were our countrymen. - Samuel Adams