Error: 'to_string' was not declared in this area in Code :: Blocks 16.01

I am using Code :: Blocks 16.01 and running the following code causes an error : 'to_string' was not declared in this area

#include <iostream>
#include <string>

using namespace std;

int main() {
    long int i = 10000000;
    cout << to_string(i);
    return 0;
}

Note. Already noted "Have g ++ follow the C ++ 11 ISO C ++ standard" in the compiler flags.

+4
source share

Source: https://habr.com/ru/post/1629377/


All Articles