User forums > Help

Not able to use c++ 11 member functions need help!!

(1/1)

deathslice:
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

oBFusCATed:
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.

Navigation

[0] Message Index

Go to full version