title: c++ error: Function 'get_time' could not be resolved - Ubuntu g++
body: <p>I have the following piece of C++ code on my class, to convert a ISO 8601 string to a <code>time_t</code> structure:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;sstream&gt;
  #include &lt;string&gt;
  #include &lt;iomanip&gt;
  #include &lt;ctime&gt;
  
  
  .... class code...
  
  
  struct tm tempTime;
  std::stringstream ss(data);
  ss &gt;&gt; std::get_time(&amp;tempTime, "%FT%TZ");
  std::time_t time = mktime(&amp;tempTime);
  
  .... class code...
  </code></pre>
  
  <p>But the compiler insists on giving me the following error:</p>
  
  <pre><code>Function 'get_time' could not be resolved
  </code></pre>
  
  <p>According to <a href="http://www.cplusplus.com/reference/iomanip/get_time/" rel="nofollow">here</a>, <code>std::get_time</code> should be included with <code>iomanip</code></p>
  
  <p>I supposed all I had to do was to include <code>iomanip</code>... Am I missing something here ?</p>
  
  <p>I´m running Ubuntu 14.04 LTS.</p>
  
  <p>Thanks for helping. </p>