The problem is an Bad (Not Vista compatible) MinGW GCC Install; I recommend the fix of installing an newer version of MinGW 3.4.5.
Edit: MortenMacFly is right there are many solutions posted on this site, my is not the best but it should work.
The newest 3.4.5 version info is "gcc version 3.4.5 (mingw-vista special r3)"
I use "gcc -v" to see the version info.
So, I suggest uninstalling the currently installed MinGW and then using MinGW 5.1.4
from
http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=240780&release_id=595197To install the "current" release.
You need the runtime, w32api, binutils, core, gpp, make.
These are normally called "MinGW Base Tools", "g++ Compiler", and "MinGW make".
Note: Debug is an separate download. You need at least version 6 for working with CodeBlocks.
I don't know which is best since I rarely use the debugger.
Tim S