Hey mate, i have been through hell and back with this. its not clear and quite the pitfall.
when dowloading code bocks dowload the TDM install not the MING one, MING is apparently in-compatable with code blocks, because its windows specific, give it a go, i think it will work.