From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23440 invoked by alias); 30 Jan 2003 18:51:29 -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 23433 invoked from network); 30 Jan 2003 18:51:29 -0000 Received: from unknown (HELO bosvwl02.infosys.com) (216.52.49.36) by 172.16.49.205 with SMTP; 30 Jan 2003 18:51:29 -0000 Received: from 192.168.200.83 by bosvwl02.infosys.com (InterScan E-Mail VirusWall NT); Thu, 30 Jan 2003 13:49:43 -0500 Received: from mohmsg01.ad.infosys.com ([192.168.122.42]) by INDHUBBHS03.ad.infosys.com with Microsoft SMTPSVC(5.0.2195.5329); Fri, 31 Jan 2003 00:25:46 +0530 content-class: urn:content-classes:message MIME-Version: 1.0 Subject: FW: how to associate fstream object with stdout Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-354b0eaa-ba37-44c0-971a-d02cea2aab59" X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Thu, 30 Jan 2003 18:51:00 -0000 Message-ID: <2B721C6525F0D411B1E900B0D0226BDD02148CE7@mohmsg01.ad.infosys.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Ajay Bansal" To: X-OriginalArrivalTime: 30 Jan 2003 18:55:46.0968 (UTC) FILETIME=[32E81980:01C2C891] X-SW-Source: 2003-01/txt/msg00301.txt.bz2 This is a multi-part message in MIME format. ------=_NextPartTM-000-354b0eaa-ba37-44c0-971a-d02cea2aab59 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2C891.31FC4186" ------_=_NextPart_001_01C2C891.31FC4186 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-length: 552 Ne pointers on this????? > -----Original Message----- > From: Gagan Puri=20=20 > Sent: Friday, January 31, 2003 12:25 AM > To: Ajay Bansal > Subject: how to associate fstream object with stdout >=20 > Hi All, >=20 > Following piece of code works with gcc 2.95 >=20 >=20 > fstream * pcout > pcout =3D new fstream(1); //set the output stream to stdout' > pcout<<"any thing" >=20 >=20 > But with gcc 3.21, pcout =3D new fstream(1); is not allowed. So how > can associate my fstream object with stdout in gcc 3.21. >=20 > Kindly advise, >=20 > Gagan ------_=_NextPart_001_01C2C891.31FC4186 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-length: 1839 FW: how to associate fstream object with stdout

Ne pointers on this?????=

 -----Or= iginal Message-----
From:   Gagan Puri 
Sent:   Friday, January 31, 2003 12:25 AM
To:     Ajay Bansal
Subject:     = ;   how to associate fs= tream object with stdout

Hi All,

Following piece of code works with gcc 2.9= 5


fstream * pcout
pcout =3D new fstream(1);  //set the= output stream to stdout'
pcout<<"any thing"


But with gcc 3.21,  pcout =3D new fst= ream(1);  is not allowed. So how can associate my fstream object with = stdout in gcc 3.21.

Kindly advise,

Gagan

= ------_=_NextPart_001_01C2C891.31FC4186-- ------=_NextPartTM-000-354b0eaa-ba37-44c0-971a-d02cea2aab59--