This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
fixed in output stream not recognized
- From: Frank <fgeck at optonline dot net>
- To: GNU GCC help list <gcc-help at gcc dot gnu dot org>
- Date: Wed, 26 Mar 2003 10:28:19 -0500
- Subject: fixed in output stream not recognized
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