Mail Archives: djgpp/1995/08/04/05:41:51
>
> // 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 -