You have to:
1. download and install compiler. There are many available (MinGW, Cygwin).
2. Open Compiler And Debugger configuration in Code::Blocks and modify compiler settings. There are two possibilities. Either you modify existing "compiler", or you add new => using second, you will be able to use both old and new compiler.