Date: Tue, 25 Oct 1994 18:47:12 +0400 (EDT) From: Quake 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 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 >#include >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> const &)' >prcc(.text+0x10fb): undefined reference to `operator<<(ostream &, smanip> const &)' >proj6.cc(.text+0x112a): undefined referentor<<(ostream &, smanip> const &)' >proj6.cc(.text+0x116b): undefined reference to `operator<<(ostream &, >smanip> constj6.cc(.text+0x119d): undefined reference to `operator<<(ostream &, >smanip> const &)' >proj6.cc(.text+0x11cf): more undefinedto `operator<<(ostream &, sman >ip 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