It's some kind of gcc for Code::Blocks? Last updated 2015. Anyway, I noticed there are other versions of gcc for Windows so why not try. There is mingw-w64 which has an installer for Windows. Changed the compiler and debugger paths in Code::Blocks and it works. Well, other than a strange warning message the compiler is giving to one of its own include files:
C:/Program Files (x86)/mingw-w64/i686-7.1.0-posix-dwarf-rt_v5-rev2/mingw32/i686-w64-mingw32/include/intrin.h:59:23: note: previous declaration of 'unsigned int __builtin_ia32_crc32qi(unsigned int, unsigned char)'
extern unsigned int __builtin_ia32_crc32qi (unsigned int, unsigned char);
^~~~~~~~~~~~~~~~~~~~~~
<built-in>: warning: redundant redeclaration of 'unsigned int __builtin_ia32_crc32hi(unsigned int, short unsigned int)' in same scope [-Wredundant-decls]
Maybe you should use warning options in your own builds, gcc dudes.