[lug] gcc header files

D. Stimits stimits at idcomm.com
Sun Mar 12 23:14:34 MST 2000


jstarkey at polaris.umuc.edu wrote:
> 
> Hello everyone.
> 
> I'm trying to compile a simple program for school which uses the
> "fixed" and "showpoint" function calls. I can't get g++ to compile
> with them in there. I'm using RH6.1 and gcc 2.91.66.
> 
> Anyone know why these won't go thru???
> 
> I'm pulling from stream inputtxt so:
> 
> inputtxt << fixed << showpoint << setprecision(2)

I missed one point on my prior reply. setprecision() is a member of
std::, rather than ostream. So:

inputtxt << ostream::fixed
         << ostream::showpoint
         << std::setprecision(2);

> 
> setprecision is fine and there are no "can't find <iomanip>" errors. I
> can't find iomanip in /usr/include
> 
> Basically it's calling fixed and showpoint undeclared identifiers.
> 
> I tried asking this on the gcc list but noone is around.
> 
> Can anyone in town help??
> 
> Thanks,
> 
> John
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug





More information about the LUG mailing list