www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/04/05:41:51

From: Tomislav Vujec <tvujec AT fly DOT cc DOT etf DOT hr>
Subject: Re: What have I done wrong with g++
To: pjbk AT cee DOT hw DOT ac DOT uk (Peter JB King)
Date: Fri, 4 Aug 1995 10:01:58 +0200 (MET DST)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

> 
> // failure of setw in the output stream
> #include <iostream.h>
> #include <iomanip.h>
> 
> main()
> {
>   int j = 735;
>   cout << j << setw(4) <<j <<endl;
> }
> 
> 
> Output from
> 	gcc -v fail.cc -o fail -lgpp
> 

	You should put -liostr in the command line. LIBGPP in GNU CC has to
parts, one is libgpp.a, and the other one is libiostr.a, which contains i/o
stream related objects and methods.

	Why separating? I think that libgpp is LGPL'ed, and libiostr is
GPL'ed. Please, someone, correct me if I am wrong.

						Tomislav Vujec
						Croatia


           "640K ought to be enough for anybody" - Bill Gates 1981
     --------------------------------------------------------------------
       E-mail: tvujec AT fly DOT cc DOT fer DOT hr            Tel: +385-(0)42-210-486  
       Adr: Tomislav Vujec   Hercegovacka 15   42000 Varazdin   Croatia  

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019