🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #933

cout and output redirection

#933
From: Bryan M Kramer
Date: Thu, 10 Sep 1992 11:00
16 lines
933 bytes
I'm using g++2.2.2. I have a program that writes to standard output
using cout << ...; This works fine in a terminal window. When it comes
to output redirection, nothing happens:

prog | more 

prints nothing and

prog > /tmp/foo

results in an empty file. Any clues?

|Bryan M. Kramer, Ph.D.	      416-978-7330, fax 416-978-1455|
|Department of Computer Science, University of Toronto      |
|6 King's College Road, Room 283E			    |
|Toronto, Ontario, Canada      M5S 1A4                      |
Technical Details
Message-ID: <92Sep10.150121edt.30@jarvis.csri.toronto.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.toronto.edu!kramer

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.toronto.edu!kramer
From: kramer@cs.toronto.edu (Bryan M Kramer)
Subject: cout and output redirection
Message-ID: <92Sep10.150121edt.30@jarvis.csri.toronto.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 10 Sep 1992 11:00:48 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 17