I'm using 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. Compiling a cpp module lasts 2-5 seconds, and linking lasts even 2-3 minutes.
It's a portable code, this code on Linux compiles very fast. I can't follow the build message window... The entire process lasts less than 20 seconds.
I tried the common tweaks (eg. precompiled header, turn optimalizations off, etc) but nothing worked.
Why is it so slow?
Any ideas?