Hi,
I was having an issue building code after installing Code::Blocks, then MinGW. I was unable to build anything with it. Instead, when I tried to build something in C::B, it gave me this error: Execution of 'mingw32-g++.exe -Wall -fexceptions -g -c "C:\Program Files (x86)\CodeBlocks\programs\Testing\main.cpp" -o obj\Debug\main.o' in 'C:\Program Files (x86)\CodeBlocks\programs\Testing' failed.
I had all my settings right in Code::Blocks, nothing had been changed from default, and I'd gone with the default installations for both C::B and MinGW, so I decided to check for the mingw32-g++.exe file that it said it couldn't execute in the Bin folder Code::Blocks said it referred to, which had been auto-detected to contain the MinGW installation. That file was not there. Turns out the basic installation from the mingw-get-setup.exe (as of now) does not include the C++ compiler. So, all you have to do is run that executable again, and choose "Run Now" when it detects your existing installation. Then, select the C++ compiler download in the list, apply changes, and it'll install that in half a heart beat. That is the only necessary step I took to fix this issue.
Perhaps Code::Blocks could be designed to run a check for the specific *.exe files it requests to accurately identify the issue?
Thank you,
Dylan