From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29626 invoked by alias); 17 Jul 2002 21:15:17 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 29588 invoked from network); 17 Jul 2002 21:15:16 -0000 Received: from unknown (HELO disaster.jaj.com) (66.93.20.253) by sources.redhat.com with SMTP; 17 Jul 2002 21:15:16 -0000 Received: (from phil@localhost) by disaster.jaj.com (8.11.4/8.11.4) id g6HLF8f20207; Wed, 17 Jul 2002 16:15:08 -0500 Date: Wed, 17 Jul 2002 14:15:00 -0000 From: Phil Edwards To: Matt Austern Cc: Ji Li , gcc-help@gcc.gnu.org, gcc@gcc.gnu.org Subject: Re: STL with gcc3 Message-ID: <20020717171507.A20179@disaster.basement.lan> References: <953DCC54-99B4-11D6-A92C-00039390D9E0@apple.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <953DCC54-99B4-11D6-A92C-00039390D9E0@apple.com>; from austern@apple.com on Wed, Jul 17, 2002 at 11:39:53AM -0700 X-SW-Source: 2002-07/txt/msg00173.txt.bz2 On Wed, Jul 17, 2002 at 11:39:53AM -0700, Matt Austern wrote: > On Wednesday, July 17, 2002, at 11:35 AM, Ji Li wrote: > > > > I believe there must be a way to make gcc-3.0.4 backward > > compatable but just could find it. Would you please point the way for > > me? > > You really don't want to do that. The standard says that everything > in the Standard Library is supposed to be in namespace std. Other > compilers have conformed to the standard for years. You should > change your code, for portability if for no other reason. Matt is correct; your code is not C++. To aid in making the transition, gcc 3.x lets you include . But there is no comparable header for , since there was never really a pre-standard string class. So you'll have to edit your code anyway; may as well fix the I/O names as well. 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