I put a relative path to Mingw using variables in Codeblocks
Example: for the toolchain path, I use
$(Codeblocks)\..\..\BIN\MingW_TDM
(see screenshot)
It works fine for everything: toolchain (Mingw, mingw TDM, MSVC, Help plugin, tool plugin)
In addition, I use the CBLauncher from biplap (search the forums).
I save all my config in $(Codeblocks)\AppData (delete every other conf files you may find on your system: in CB directory, in C:\Users\<user>\AppData\Roaming\codeblocks (Windows Vista), ...)
And I use a bat file to set the path to other utilities, such as CMake or Doxygen. (The .bat sets the PATH variable, and then launch CBLauncher).
This way, I have CodeBlocks + 2 compilers + Libraries + additional tools inside 1 folder that I move around. The path can have spaces in it.
At work, this folder stays on my desktop.
Hope this helps.
Sebastien
[attachment deleted by admin]