title: c++11 to_string to working with code::blocks -std=c++11 flag already selected
body: <p>this is the code i am trying to compile, got it from another forum somewhere.</p>
  
  <pre><code>// to_string example
  
  #include &lt;iostream&gt;   // std::cout
  
  #include &lt;string&gt;     // std::string, std::to_string
  
  
  int main ()
  
  {
  
    std::string pi = "pi is " + std::to_string(3.1415926);
  
    std::string perfect = std::to_string(1+2+4+7+14) + " is a perfect number";
  
    std::cout &lt;&lt; pi &lt;&lt; '\n';
  
    std::cout &lt;&lt; perfect &lt;&lt; '\n';
  
    return 0;
  
  }
  </code></pre>
  
  <p>I am getting the error: 
  'to_string' is not a member of 'std'</p>
  
  <p>I have read in other forums to select the flags "Have g++ follow the c++11 ISO language standard [-std=c++11]" and i have and it still doesn't work.</p>
  
  <p>Any help would be greatly appreciated</p>
  
  <p>I am using the GNU GCC Compiler
  and code::Blocks 12.11</p>