If you use the MinGW g++ compiler, and create a project with either the dll wizard or the static-lib wizard, Code::Blocks complains not to know, how to set the Debug/Optimization flags. The wizard.script of the console wizard comments, that Wizard.GetTargetCompilerID doesn't seem to work and uses Wizard.GetCompilerID instead.
Wizard.GetTargetCompilerID is used in the dll wizard (line 75 and 80) and in the static-lib wizard (also line 75 and 80). Replacing with Wizard.GetCompilerID makes the wizards work again.