I also use Code::Blocks, you may require MinGW or another program to work.
To do that:
1) Get MinGW
2) Open Code::Blocks, go to settings, view compiler/debugger. Adjust paths as needed.
1)Where can i get MinGW?
2)Is there a special path i need to download MinGW to?