title: Problem compiling a C file code on Visual Studio Code
body: <p>I am new to C programming and I'm facing one of the most annoying issues during my debut. I know this question came up many times, but I honestly could not find any solution. Either the answers contain advanced vocabulary for a beginner, either I try the solution but the problem persists.</p>
  <p>I am writing my code on VSCode and already installed the required extensions as well as MinGW and added its directory to my path. I ran the cmd line and checked if gcc is installed correctly. But the issue is whenever I try to run my C-code the command line and VScode give me the following error</p>
  <p><em><strong>&quot;c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot open output file a.exe: No such file or directory
  collect2.exe: error: ld returned 1 exit status&quot;</strong></em></p>
  <p>Here is my code I already built it and there are no errors:</p>
  <pre><code> #include &lt;stdio.h&gt;
  
  int main()
  {
      printf(&quot;Hello world/n&quot;);
  
      return 0;
  }
  </code></pre>
  <p>I would appreciate any help. Thank you.</p>