title: Why is MinGW very slow?
body: <p>I'm using the Code::Blocks IDE with GCC/MinGW on Windows, and I'm trying to build a wxWidgets application which has ca. 20k lines and 40 source modules. And it builds very very slow.</p>
  
  <p>Compiling a C++ module lasts 2-5 seconds, and linking lasts even 2-3 minutes.</p>
  
  <p>It's a portable code, and this code compiles very fast on Linux. I can't follow the build message window... The entire process lasts less than 20 seconds.</p>
  
  <p>I tried the common tweaks (for example, precompiled header, turn optimizations off, etc.), but nothing worked.</p>
  
  <p>Why is it so slow?</p>