fatal error: string.h: No such file or directory
<p>In my environment, I couldn't include <code>&lt;cstring&gt;</code>.
My g++ version is 4.9.3 (Homebrew gcc49 4.9.3).</p>

<p>The error is:</p>

<pre><code> - /usr/local/Cellar/gcc49/4.9.3/include/c++/4.9.3/cstring:42:20: fatal
   error: string.h: No such file or directory
  "#include string.h"
</code></pre>

<p>But, in another environment (g++ 4.8.4[Ubuntu 4.8.4-2ubuntu1~14.04.3]), I can include <code>&lt;cstring&gt;</code> and run.</p>

<p>What's the problem and how do I solve it?</p>

<p>[P.S.]
Maybe, I misunderstood about the problem.
I tried to run my previous code, but got an error like this:</p>

<pre><code>    /usr/local/Cellar/gcc49/4.9.3/include/c++/4.9.3/cassert:43:20: fatal error: assert.h: No such file or directory
 #include &lt;assert.h&gt;
</code></pre>

<p>Then, I can't run my code.
It is a g++'s problem.</p>

<p>I checked this article, but this procedure is not working.
I already installed xcode-select (commmad line tool) and I uninstalled xcode-select and reinstalled xcode-select, but it's not working.</p>

<p><a href="https://stackoverflow.com/questions/19575956/building-c-not-working-in-osx-10-9">Building C++ not working in OSX 10.9</a></p>