title: How to make GCC in cmd.exe shows all errors
body: <p>I've been using gcc in windows cmd to compile my c codes.<p>
  Here's my cmd command which work normally:</p>
  
  <pre><code>gcc test.c -o myprogram
  </code></pre>
  
  <p>When there are more than one errors, like this code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;foo.h&gt;
  int main()
  {
      printf("bar")
  }
  </code></pre>
  
  <p>It displays just this one error<p></p>
  
  <pre><code>error.c:2:19: fatal error: foo.h: No such file or directory
  </code></pre>
  
  <p>compilation terminated.
  <p>instead of 3 errors:</p>
  
  <ol>
  <li>no "foo.h" header file</li>
  <li>printf("bar") has no semicolon</li>
  <li>no return value for int main</li>
  </ol>
  
  <p>How can I improve my cmd command to make gcc show all of its errors?</p>