title: Problems with std::stoi, not working on MinGW GCC 4.7.2
body: <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  
  int main()
  {
      std::string test = "45";
      int myint = stoi(test);
      std::cout &lt;&lt; myint &lt;&lt; '\n';
  }
  </code></pre>
  
  <p>I tried this code on my computer which is running MinGW GCC 4.7.2. It gives me this error:</p>
  
  <p><img src="https://i.stack.imgur.com/mBWff.png" alt="enter image description here"></p>
  
  <p>What am I doing wrong, I got this from <a href="http://en.cppreference.com/w/cpp/string/basic_string/stol" rel="nofollow noreferrer">cppreference</a>. Its the exact same code. And its a different error from the one described <a href="https://stackoverflow.com/questions/8542221/stdstoi-doesnt-exist-in-g-4-6-1-on-mingw">here</a>.</p>