I am having the same problem, i just intsalled code blocks on windows xp and i cant get it to compile.
I am looking in toolchain executables but i am not sure wat to do.
Which version of C::B?
If 8.02 the MinGW-compiler is integrated in installer and should be found at first run of C::B, if you do not install it (MinGW) in a very strange folder.
The textbox "Compilers Installation directory" contains the base-directory of MinGW compiler suite (e.g. "c:\MinGW").
The textareas in "Program Files" should contain the names of the executables ("gcc.exe" as c-compiler "g++.exe" as c++-compiler and linker for dynamic libs and so on).