title: GNU mingw compiler error: sh: gcc: command not found
body: <p>I have downloaded the GNU compiler using the instructions online. Whilst compiling, I keep on getting the following error:</p>
  
  <p><em>sh: gcc: command not found</em></p>
  
  <p>I have tried to search online, but I have has no luck. Does anybody know why this is occurring, or how to fix it?</p>
  
  <p>P.S
  I have the mingw folder saved in <code>C:\mingw</code> and I am using the <code>msys.bat</code> compiler as suggested online which is located in <code>C:\mingw\msys\1.0</code>. The source .c file I am trying to compiler is located in <code>D:\cfiles\task1</code>.</p>
  
  <p>Thanks for your help in advance</p>