title: VS Code can't find malloc.c
body: <p>I'm getting an eror when I include <code>cstdlib</code> in C++.</p>
  
  <blockquote>
    <p>Unable to open 'malloc.c': File not found (file:///build/glibc-bfm8X4/glibc-2.23/malloc/malloc.c).</p>
  </blockquote>
  
  <p>The error comes from the top part of the VS code window.
  <a href="https://i.stack.imgur.com/rXyZD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rXyZD.png" alt="error source"></a></p>
  
  <p>(the error occurs during debugging.)</p>
  
  <p>Here's some of the code:</p>
  
  <pre><code>#include &lt;cstdlib&gt;
  #include &lt;portaudio.h&gt;
  
  //...
  
  static int paCallback( const void *inputBuffer, void *outputBuffer,
                             unsigned long framesPerBuffer,
                             const PaStreamCallbackTimeInfo* timeInfo,
                             PaStreamCallbackFlags statusFlags,
                             void *userData )
  {
      /* Cast data passed through stream to our structure. */
      paTestData *data = (paTestData*)userData; 
      float *out = (float*)outputBuffer;
      unsigned int i;
      (void) inputBuffer; /* Prevent unused variable warning. */
  
      for( i=0; i&lt;framesPerBuffer; i++ )
      {
          *out++ = data-&gt;left_phase;  /* left */
          *out++ = data-&gt;right_phase;  /* right */
  
          float currentSample = 0;
          char *sampleData = new char[4];
  
          for(int j = 0; j &lt; 4; j++)
          {
              sampleData[j] = currentBuffer[&amp;currentIndex + j];
          }
  
          currentSample = (float)atof(sampleData); //cstdlib is included to use atof
  
          //gets audio sample data and forwards to PortAudio
          data-&gt;left_phase = currentSample;
          data-&gt;right_phase = currentSample;
  
          currentIndex += 4;
      }
      return 0;
  }
  </code></pre>
  
  <p>I'm using Linux Mint 81.1 if that helps.</p>