This may be a bug, or maybe it's just user error.

First I installed MinGW for C (not C++).
Next, I installed Codes::Block 13.12 and created a new project by selecting Console Application
I then selected the C language.
After the project was created, I opened up the .c file containin main() that had the Hello, world in it. But when I do a build (or rebuid), I get the following error message:
"mingw32-g++.exe -o bin\Debug\Arrays.exe obj\Debug\main.o
Execution of 'mingw32-g++.exe -o bin\Debug\Arrays.exe obj\Debug\main.o' in 'E:\Documents\Documents\CodeBlock C Projects\Arrays' failed."
Code::Blocks is using the wrong compiler. I do not have mingw32-g++.exe which is a C++ compiler. I have a mingw32-gcc.exe and a mingw32-cc.exe in the compiler's bin directory. If I run either of these from the command console, they both show I using (gcc) 4.8.1
I went to settings in Code::Blocks, and it shows I'm using GNU GCC compiler, but it doesn't show me the executable file name or any way to change it.
Can someone tell me how to change it so that it uses the C compiler instead of the C++ compiler?
Thanks.