I downloaded CodeBlocks 1.0rc2 and tried to get it running on Vista with MinGW. As with many others, I had a ton of problems trying to get MinGW to cooperate. Between Google and this board, I saw all sorts of comments about MinGW having problems on Vista. Things like needing to install it to a folder off the root, requiring projects to be on the same partition as MinGW, various environment variables needing to be set, and so on. I spent the last few hours fighting with all these different things, and got awfully frustrated in the process. I got the compiling phase to work, but the linker always gave me a "crt2.o: No such file: No such file or directory" error message.
But... but, I finally had an idea that seems to solve all these issues. I simply went to the "Toolchain Executables" settings tab, and pasted the full path into each of the boxes. In other words, I went from "mingw32-g++.exe" to "D:\toolkits\MinGW513\bin\mingw32-g++.exe". To my delight, it actually worked! Ditto with GDB, once I installed it.
Now, weirdly enough, I had to leave the full path prefix off of the "C Compiler" option (in other words, just leave it as "mingw32-gcc.exe"). Any attempt to add that same path prefix to that file results in the message "TestApp1 - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping...".
So, in summary, it seems that simply entering the complete path to the various toolchain executables
should make MinGW work on Vista.
If anyone else can verify this, or has any comments to add, I'd appreciate it.
Mark Erikson
http://www.isquaredsoftware.com