fixed in output stream not recognized
Frank
fgeck@optonline.net
Wed Mar 26 20:15:00 GMT 2003
fixed in output stream not recognized? RH linux 7.1, gcc 2.96. This
works on solaris, but 3.X g++. Any way to format without compiler
upgrade, i.e is that the problem?
double d;
ofstream file(filename.c_str());
file.precision(0);
file << fixed << d;
Error:
/home/ssa/src/Cbr.cpp:516: `fixed' undeclared (first use this function)
/home/ssa/src/Cbr.cpp:516: (Each undeclared identifier is reported only
once for each function it appears in.)
make: *** [/home/ssa/src/Cbr.o] Error 1
More information about the Gcc-help
mailing list