This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]