To_string() function in codeblock not working!

and if this solves your problem you can accept my answer :slight_smile:

You are absolutely right. to_string() doesn’t work on code::blocks

1 Like

It doesn’t work in codebloacks

I have version 6

Basic way of not getting the error is
use command:

g++ -std=c++0x File.cpp 

This will remove all sort of errors for to_string or stoi(), or for other functions

I had the same problem, and even changing the flag to std=c++0x it don’t work. I copy the file that you post and it is working!!, thanks a lot.

I am also facing the same error. It says "to_string was not declared in this scope ". Can any one can give the solution for it in codeblocks