Code::Blocks Forums

User forums => Help => Topic started by: deathslice on December 03, 2014, 05:49:04 pm

Title: Not able to use c++ 11 member functions need help!!
Post by: deathslice on December 03, 2014, 05:49:04 pm
I been trying to use c++ 11 functions like to_string or stoi but my program keeps saying "error function not declared in scope" which I'm not able to used that function. The version of codeblocks that I have is 13.12. My compiler is GNU GCC and I have followed these steps:

Go to Toolbar -> Settings -> Compiler
In the "Selected compiler" drop-down menu, make sure "GNU GCC Compiler" is selected
Below that, select the "compiler settings" tab and then the "compiler flags" tab underneath
In the list below, make sure the box for "Have g++ follow the C++11 ISO C++ language standard [-std=c++11]" is checked
Click OK to save

and  they didn't help. Please help
Title: Re: Not able to use c++ 11 member functions need help!!
Post by: oBFusCATed on December 03, 2014, 09:12:41 pm
Are you sure that the compiler you have has support for them?
This is totally not related to cb, but the compiler you're using.