Author Topic: Not able to use c++ 11 member functions need help!!  (Read 4440 times)

deathslice

  • Guest
Not able to use c++ 11 member functions need help!!
« 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
« Last Edit: December 03, 2014, 05:54:58 pm by deathslice »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Not able to use c++ 11 member functions need help!!
« Reply #1 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]