title: std::stod is not a member of std
body: <p>I can't compile  the following code</p>
  
  <pre><code>auto test = 42.02;
  double right = std::stod(stck.top());
  </code></pre>
  
  <p>I'm using Code::Blocks and activated the build option to follow c++11 standard. The compiler does not complain about the auto declaration and compiles, when I put the line below in comments.</p>
  
  <p>I included the string header. I'm not using a namespace.</p>
  
  <p>I have no idea why this does not compile. Please help me!
  edits:
  My compiler is Standard MinGW GCC 4.9</p>
  
  <p>For simplicity reasons, I tried the following: compiled with -std=c++11</p>
  
  <pre><code>#include &lt;string&gt;
  
  int main(){
       double pi = std::stod("3.14");
       return 0;
  }
  </code></pre>
  
  <p>I get the following error:</p>
  
  <p>error: stod is not a member of std.</p>