Subject: bin/1091: can't use iomanip on stream other than cout
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: Kenneth Stailey <kstailey@gnu.ai.mit.edu>
List: netbsd-bugs
Date: 05/30/1995 19:05:07
>Number:         1091
>Category:       bin
>Synopsis:       can't use iomanip on stream other than cout
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 30 19:05:04 1995
>Originator:     Kenneth Stailey
>Organization:
self
>Release:        what ever pogo is running on Tue May 30 21:52:10 EDT 1995
>Environment:
System: NetBSD pogo.gnu.ai.mit.edu 1.0A NetBSD 1.0A (DUALITY) #2: Mon Mar 6 01:16:37 EST 1995 root@duality.gnu.ai.mit.edu:/build/src/sys/arch/hp300/compile/DUALITY hp300


>Description:

	Link errors on iomanip stuff when used on non-"cout" stream.

>How-To-Repeat:
	Try to comile this:

#include <fstream.h>
#include <iostream.h>
#include <iomanip.h>

ofstream fout("/tmp/foo");

main()
{
  fout << setw(10);
}

	
>Fix:
	
Use libg++ 2.6.2
>Audit-Trail:
>Unformatted: