title: strdup error on g++ with c++0x
body: <p>I have some C++0x code. I was able to reproduce it below. The code below works fine without <code>-std=c++0x</code> however i need it for my real code.</p>
  
  <p>How do i include strdup in C++0x? with gcc 4.5.2 </p>
  
  <p>note i am using mingw. i tried including cstdlib, cstring, string.h and tried using std::. No luck.</p>
  
  <pre><code>&gt;g++ -std=c++0x a.cpp
  a.cpp: In function 'int main()':
  a.cpp:4:11: error: 'strdup' was not declared in this scope
  </code></pre>
  
  <p>code:</p>
  
  <pre><code>#include &lt;string.h&gt;
  int main()
  {
      strdup("");
      return 0;
  }
  </code></pre>