title: Code::Blocks Can't compile application
body: <p>This is my hello world code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
  {
      printf("Hello world!\n");
      return 0;
  }
  </code></pre>
  
  <p>When I'm trying to run application I'm getting an error:</p>
  
  <pre><code>Target uses an invalid compiler; run aborted
  </code></pre>
  
  <p>So I went to Settings->Compiler->Toolchain Executables, and I selected <code>C:\MinGW\bin</code>, I have also tried  <code>C:\MinGW</code> and I still get the same error.</p>
  
  <p>I have installed Code::Blocks with mingw from the official Code::Blocks site.</p>
  
  <p>Please help, I want start learning C but I can't...</p>