delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/25/21:51:59

Date: Tue, 25 Oct 1994 18:47:12 +0400 (EDT)
From: Quake <quake AT telerama DOT lm DOT com>
Subject: Re: DJGPP v2.6.0 setw() (fwd)
To: djgpp AT sun DOT soe DOT clarkson DOT edu


---------- Forwarded message ----------
Date: Tue, 25 Oct 94 12:40:42 -0700
From: Gordon Hogenson <ghogenso AT u DOT washington DOT edu>
To: quake AT telerama DOT lm DOT com
Subject: Re: DJGPP v2.6.0 setw()

Please send this to 'djgpp AT sun DOT soe DOT clarkson DOT edu' as a bug report.
I am not sure that DJ is aware of this problem....

--------------------------------------------------------------------
In gnu.g++.help you write:

>I wrote a program with the following valid code in it.  I know it is 
>valid because it will compile on the unix platform of g++.  However, it 
>wont compile on my DOS port.

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

>cout << setw( 9 ) << "---" << endl;

>I'm compiling the code with

>gcc proj6.cc -lgpp

>And I get the following errors.

>C:\DJGPP\CLASS\PROJ\PROJ6>gcc proj6.cc -lgpp
>proj6.cc(.text+0x10cc): undefined reference to `operator<<(ostream &, 
>smanip<int
>> const &)'
>prcc(.text+0x10fb): undefined reference to `operator<<(ostream &, smanip<int
>> const &)'
>proj6.cc(.text+0x112a): undefined referentor<<(ostream &, smanip<int
>> const &)'
>proj6.cc(.text+0x116b): undefined reference to `operator<<(ostream &, 
>smanip<int
>> constj6.cc(.text+0x119d): undefined reference to `operator<<(ostream &, 
>smanip<int
>> const &)'
>proj6.cc(.text+0x11cf): more undefinedto `operator<<(ostream &, sman
>ip<int> const &)' follow

>C:\DJGPP\CLASS\PROJ\PROJ6>

>Does anyone have any idea what I'm doing wrong?  I think I'm missing a
>flag on the gcc command or I'm missing a vital file.  I'm pretty sure 
>it's the setw() function because without the function the program 
>compiles fine.

>--
>G. Saxer
>saxergd AT cs DOT purdue DOT edu


- Raw text -


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