title: The Fortran compiled using Visual Studio Code on Mac causes "library not found for -lSystem"
body: <p>I tried to compile my code in Fortran by Visual Studio. I coded an easy example.</p>
  <pre><code>program fortran
      implicit none
      character*20 :: name
      print*,&quot;what is your name&quot;
      read *, name
      print *,&quot;Hello &quot;, name
  end program fortran
  </code></pre>
  <p>But it can't execute on my Mac terminal. The error message is: '</p>
  <pre><code>ld: library not found for -lSystem
  collect2: error: ld returned 1 exit status
  </code></pre>
  <p>I also noticed that on my right bottom corner of VS, it shows <code>the active environment is not selected</code>. I guess maybe it is related to the issue?  Plus, I also downloaded the intelapi toolkit.</p>
  <p>So what should I do now?</p>