My arm toolchain is giving out this error.
hello.cpp: In function ‘int main()’: hello.cpp:6:30: error: ‘round’ is not a member of ‘std’
float frac = absval - std::round(absval);
This is my code
#include <iostream>
using namespace std;
int main()
{
float absval = 10.3;
float frac = absval - std::round(absval);
}
While going through some other posts, they say round is supported from c++11. My tool chain is based on GCC 4.8.3 and i believe this version of gcc supports c++11.
Can anyone tell me why this is happening then ?
Aucun commentaire:
Enregistrer un commentaire