From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 430 invoked by alias); 28 Sep 2005 07:36:03 -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 32618 invoked by uid 22791); 28 Sep 2005 07:35:00 -0000 Received: from ms-1.rz.rwth-aachen.de (HELO ms-dienst.rz.rwth-aachen.de) (134.130.3.130) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 28 Sep 2005 07:35:00 +0000 Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0INI0065XNQ929@ms-dienst.rz.rwth-aachen.de> for gcc-help@gcc.gnu.org; Wed, 28 Sep 2005 09:34:57 +0200 (MEST) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Wed, 28 Sep 2005 09:34:57 +0200 (MEST) Received: from Timail.techinfo.rwth-aachen.de (timail.techinfo.RWTH-Aachen.DE [137.226.137.5]) by relay.rwth-aachen.de (8.13.3/8.13.3/1) with ESMTP id j8S7YuF6028637; Wed, 28 Sep 2005 09:34:56 +0200 (MEST) Received: from TIMAIL/SpoolDir by Timail.techinfo.rwth-aachen.de (Mercury 1.48) ; Wed, 28 Sep 2005 09:34:57 +0100 (MEZ) Received: from SpoolDir by TIMAIL (Mercury 1.48); Wed, 28 Sep 2005 09:34:46 +0100 (MEZ) Received: from kilauea.techinfo.rwth-aachen.de (137.226.137.197) by Timail.techinfo.rwth-aachen.de (Mercury 1.48) with ESMTP; Wed, 28 Sep 2005 09:34:43 +0100 (MEZ) Date: Wed, 28 Sep 2005 07:36:00 -0000 From: Peter Doerfler Subject: Re: ostrstream problem In-reply-to: <1127876423.25951.19.camel@localhost.localdomain> To: gcc-help@gcc.gnu.org, ernesto@ornl.gov Message-id: <200509280934.42314.doerfler@techinfo.rwth-aachen.de> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: quoted-printable Content-disposition: inline User-Agent: KMail/1.8.1 References: <1127876423.25951.19.camel@localhost.localdomain> X-SW-Source: 2005-09/txt/msg00194.txt.bz2 Hi Ernest. "strstream has been deprecated in the C++98 standard because the standards= =20 committee felt it was superseded by stringstream, which better encapsulates= =20 memory management. strstream is still an official part of the standard that= =20 conforming C++ implementers must provide." [distilled from Herb Sutter's http://www.gotw.ca/publications/mill19.htm] So you can either use ostringstream or include backward/strstream (found by= =20 grep). Note that I haven't checked if the ostrstream now in backward is the= =20 same that used to be in the general include directory in previous versions. HTH, Peter On Wednesday 28 September 2005 05:00, Ernest L. Williams Jr. wrote: > Hi, > > I am now using gcc 4.0.1. > > I get the following error: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > error: =E2=80=98ostrstream=E2=80=99 was not declared in this scope > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > > > What header must I use to get ostrstream? > > I tried : #include > > I am confused. > Any help or reference is welcomed and appreciated. > > > > Thanks, > Ernest L. Williams Jr.