[lug] gcc header files

D. Stimits stimits at idcomm.com
Sun Mar 12 23:07:29 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)

Try calling them specifically as members of ostream. Haven't tested
it, but this should work:
inputtxt << ostream::fixed << ostream::showpoint <<
ostream::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