I tried. It says "invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]... Skipping" I've tried every compiler under Settings>Compiler and debugger..., and everything says the same thing.
Well, that error message might give you a good hint. Obviously, if the IDE doesn't know what compiler executable to invoke, it won't do it.
First of all, do you have a compiler installed at all? And if you do, check that the path to it is set properly in compiler options. Also, if you use a compiler with only non-standard executable names (such as "gcc-i686-foo-bar-DW2.exe
" or something), make sure that you either
configure the executable names properly in the compiler settings dialog as they appear, or
alternatively make a junction with a generic name "such as "gcc.exe
") to the real program. Instead of a junction, a copy will do, too.
The whole point is, whatever you tell Code::Blocks to look for, it must be able to find that.
Dev-CPP is made so every monkey can use it, but that is no surprise, as it comes with its own version of MinGW bundled, and it's preconfigured to work with exactly this one constellation, and nothing else.
You can have that with Code::Blocks too, if you select the right option in the installer. In addition, Code::Blocks will also detect most properly done installations of MinGW by itself (unless you prevent the installer from writing to the registry).
What it can't (or rather, won't) do is find the right compiler out of possibly a million files on your hard disk if neither there are any registry hints, nor the compiler is in its default location, i.e. some unknown compiler version that you either unzipped manually or that happens to be inside Dev-CPP's folder.