NetBSD Problem Report #1091

From gnats  Tue May 30 18:54:51 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id SAA17974 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Tue, 30 May 1995 18:54:50 -0700
Message-Id: <199505310155.VAA04558@pogo.gnu.ai.mit.edu>
Date: Tue, 30 May 1995 21:55:50 -0400
From: Kenneth Stailey <kstailey@gnu.ai.mit.edu>
Reply-To: kstailey@gnu.ai.mit.edu
To: gnats-bugs@NetBSD.ORG
Subject: can't use iomanip on stream other than cout
X-Send-Pr-Version: 3.2

>Number:         1091
>Category:       bin
>Synopsis:       can't use iomanip on stream other than cout
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    explorer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 30 19:05:04 +0000 1995
>Closed-Date:    Wed Aug 21 17:58:41 +0000 1996
>Last-Modified:  Wed Aug 21 17:59:50 +0000 1996
>Originator:     Kenneth Stailey
>Release:        what ever pogo is running on Tue May 30 21:52:10 EDT 1995
>Organization:
self
>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
>Release-Note:
>Audit-Trail:

From: Kenneth Stailey <kstailey@dol-esa.gov>
To: gnats-bugs@NetBSD.ORG, gnats-admin@NetBSD.ORG
Cc: explorer@NetBSD.ORG
Subject: Re: bin/1091 can't use iomanip on stream other than cout
Date: Wed, 21 Aug 1996 13:24:33 -0400 (EDT)

 This problem was fixed when the GNU C compiler was upgraded to 2.7.2.

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

 ofstream fout("/tmp/foo");

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

 kstailey@owl$ make foo
 g++ -O   -o foo foo.cc 
 kstailey@owl$ 

 No more linker errors.
State-Changed-From-To: open->closed 
State-Changed-By: explorer 
State-Changed-When: Wed Aug 21 13:58:41 EDT 1996 
State-Changed-Why:  
Fixed when gcc became 2.7.2 


Responsible-Changed-From-To: bin-bug-people->explorer 
Responsible-Changed-By: explorer 
Responsible-Changed-When: Wed Aug 21 13:58:41 EDT 1996 
Responsible-Changed-Why:  
I closed it. 

From: Michael Graff <explorer@flame.org>
To: Kenneth Stailey <kstailey@dol-esa.gov>
Cc: gnats-bugs@NetBSD.ORG, gnats-admin@NetBSD.ORG
Subject: Re: bin/1091 can't use iomanip on stream other than cout
Date: 21 Aug 1996 13:59:49 -0400

 Kenneth Stailey <kstailey@dol-esa.gov> writes:

 > This problem was fixed when the GNU C compiler was upgraded to 2.7.2.

 Thanks.  I'll close the PR then.  :)

 --Michael
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.