Click to See Complete Forum and Search --> : 'noskipws' manipulator missing in gcc2.96?


anshelm
03-29-2002, 09:33 AM
Hi all, I'"m a newbie to this forum, and a somewhat newbie-ish programmer.

I wrote a program to take input from the keyboard, determine what the first word was, and do something with the rest of the line based on this.

example:
#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
string bob;

cout << "$ ";
cin >> noskipws >> bob;
...
}

But gcc 2.96 doesn't recognize the manipulator 'noskipws'. Any suggestions, since it is part of the C++ standard?

[ 29 March 2002: Message edited by: anshelm ]

[ 29 March 2002: Message edited by: anshelm ]

marvin
03-29-2002, 10:23 AM
According to this link (http://gcc.gnu.org/ml/gcc/2000-11/msg01209.html) it was a bug in older versions of gcc. I guess it wasn't fixed in 2.96... Try upgrading to a newer version of gcc.

anshelm
03-29-2002, 10:37 AM
Thanks, I was wondering if it was something like that.

Do you know where I could find a binary release of gcc 3.0.4?

Stuka
03-29-2002, 10:40 AM
gcc is the GNU C Compiler, so the first place I'd look is the GNU web site. (http://www.gnu.org)