
The MinGW C++ Toolbox installer does not seem to correctly set the PATH environment variable so you will probably have to set it manually. If you have older MinGW installations or cygwin installed make sure that MinGW C++ Toolbox directory paths are positioned before any other mingw/cygwin paths in the PATH environment variable. Also make sure that the paths in Search Directories settings are pointing to valid MinGW C++ Toolbox sub-directories. CodeBlocks is available in two variant with and without compiler. You can use the little button to the right of the directory entry field to navigate to the correct directory. Download and install CodeBlocks with C compiler in Windows.

Make sure that the Compiler Installation Directory is set to your MinGW C++ Toolbox directory. Open up the Compiler/Debugger settings dialogue. If youre planning installing a compiler after youve installed Code::Blocks, read the information provided in the installer.

If you are a Gentoo user at this point, please see CompilingCode::BlocksinGentoo. Change to the source code directory, by issuing the following command: cd trunk. Then checkout the source using one of these methods.

The Dev-cpp installation uses MinGW 3.4.2 which will not work with the Ogre SDK. Enter your development directory: cd /devel. For those migrating from Dev-cpp, this can be a problem, since Code::Blocks will probably find the Dev-cpp installation of MinGW before the one you just installed. If you have several different MinGW versions installed, Code::Blocks will only select the first one it finds.
