Something I was planning to put on the Wiki; but, I have NOT yet done it.
Using MinGW GCC in Code::Blocks (CB) problems types:
1. Toolchain configuration issues
See link for things to try to fix Toolchain
http://forums.codeblocks.org/index.php/topic,18075.0.html 2. Compiler Installation issues
a. Compiler not installed
b. Compiler only partly installed
c. Compiler installation damaged
3. Compiler Conflict issues
a. Cygwin in the system path
b. MSys in the system path
c. Special folder exists on your computer.
4. CB project settings issues
a. Project/target is not using the correct Compiler
b. Project is using more than one Compiler
5. Security related issues
a. Windows security
b. Anti-Virus caused issues
Your problem is likely caused by a part 5 "Security related issues".
Tim S.