#103 fixed and showpoint 'undeclared'

OTHER
closed
nobody
fixed
Known_bugs
2013-01-24
2002-01-10
Some Guy
No

Tried to compile the following simple code:

#include<iostream.h>
#include<iomanip.h>

using namespace std;

const float FLOATER = 1349.9431;

int main()
{
cout << fixed << setprecision(3) << FLOATER <<
endl;
return 0;
}

Compiling presents the following error:

`fixed' undeclared (first use this function)

If I use:

cout.setf(ios::fixed);

in it's place, it works just fine. Showpoint behaves
in the same fashion.

Discussion

  • Danny Smith

    Danny Smith - 2002-01-10
    • status: open --> closed-rejected
     
  • Danny Smith

    Danny Smith - 2002-01-10

    Logged In: YES
    user_id=11494

    This is not a mingw bug, but a libstdc++ bug. It is fixed
    in libstdc++-v3 which is much compliant with standard.
    This versioon og libstdc++ will be included with next major
    release of mingw

     
  • Earnie Boyd

    Earnie Boyd - 2013-01-24
    • labels: --> libstdc++, gcc
    • status: closed-rejected --> closed
    • resolution: --> fixed
    • category: --> Known_bugs
    • milestone: --> OTHER
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks