I'm actually having the exact same problem, except with the 32-bit version on Windows Vista. I've verified that Code::Blocks is indeed looking in the correct folder for the compiler, and that all of the files are exactly where it expects them to be, yet I get the same error when I try to build (despite doing everything the exact same way as on my XP machine, which works just fine). I don't know how to compile using the '-v' switch in Code::Blocks, but if I use the Windows command prompt to compile using mingw32-gcc.exe directly, I get the same error message, with the following information when including the '-v' switch:
C:\MinGW32\bin>mingw32-gcc C:\Users\Scott\programs\strings.c -v
Using built-in specs.
COLLECT_GCC=mingw32-gcc
Target: mingw32
Configured with: ../../gcc-4.5.0/configure --prefix=/mingw --build=mingw32 --ena
ble-languages=c,ada,c++,fortran,objc,obj-c++ --disable-nls --disable-win32-regis
try --enable-libgomp --disable-werror --enable-threads --disable-symvers --enabl
e-cxx-flags='-fno-function-sections -fno-data-sections' --enable-fully-dynamic-s
tring --enable-libstdcxx-debug --enable-version-specific-runtime-libs --with-pkg
version=tdm-1 --enable-sjlj-exceptions --with-bugurl=http://tdm-gcc.tdragon.net/
bugs
Thread model: win32
gcc version 4.5.0 (tdm-1)
COLLECT_GCC_OPTIONS='-v' '-mtune=i386' '-march=i386'
cc1 -quiet -v -iprefix c:\mingw32\bin\../lib/gcc/mingw32/4.5.0/ C:\Users\Scott\
programs\strings.c -quiet -dumpbase strings.c -mtune=i386 -march=i386 -auxbase s
trings -version -o C:\Users\Scott\AppData\Local\Temp\cc3wLj3h.s
mingw32-gcc: CreateProcess: No such file or directory
If I try navigating to Code::Blocks using the command prompt I can still attempt to compile, when I add the '-v' switch I get an "Unknown option 'v'" message from Windows. It actually pops up twice in a row, though I doubt that's significant.