I configured MinGW to Code::Blocks correctly.
[...]
Static library - MinGW RELEASE" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping... Nothing to be done.
Both cannot be true. C::B complains like that if it cannot find the compiler's executables. So you did one of the following wrong:
1.) You did not setup the tool chain path's correctly
2.) You did not setup the names of the executables correctly
3.) You did forget to e.g. install the G++ compiler for MinGW/GCC. Notice that this compiler suite is splitted into many parts: One for C, one for C++, one for Fortran, one for binutils etc...
(Btw: in newer versions the error message is more more descriptive.)
Anyways:
Please: next time search the forums before you post. This has been answered many times. We are usually locking such topics as they violate our forum rules. But as you have posted the first time I gave you this hint.