0

I can't use to_string() in CodeBlocks. I ticked the box to use compiler flag -std=c++11.

I want my program to be able to run something like this:

#include <iostream>
#include <string>
using namespace std;
int main () {
    cout << to_string(2);
    return 0;
}

Any solutions?

EDIT:

I get error message: 'to_string' was not declared in this scope.

I am using the GNU GCC Compiler that came with the installation of CodeBlocks.

S. A.
  • 66
  • 11

0 Answers0