[lug] gcc header files
D. Stimits
stimits at idcomm.com
Sun Mar 12 23:16:38 MST 2000
jstarkey at polaris.umuc.edu wrote:
It's been a long night...I forgot to mention yet one more thing. The
manipulator for fixed and showpoint are included if you #include
<iostream>, but the std::setprecision() uses #include <iomanip>
>
> 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)
>
> 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