I am not able to determine how to build only using the C compiler (GCC, via MinGw32-gcc.exe).
Take this very basic project, all syntax is in C, it has one resource file, 1 image in a .res file, and one source file (end in .c), the g++ compiler is the one that ultimately produces the output exe.
The output of the build is as follows:
mingw32-gcc.exe -Wall -O -c C:\Users\me\Documents\Simple\Test1\main.c -o obj\Debug\main.o
windres.exe -J rc -O coff -i C:\Users\me\DOCUME~1\Simple\Test1\resource.rc -o obj\Debug\resource.res
mingw32-g++.exe -Wall -O -c C:\Users\me\Documents\Simple\Test1\image1.bmp -o obj\Debug\image1.o
mingw32-g++.exe -o bin\Debug\Test1.exe obj\Debug\main.o obj\Debug\resource.res -lgdi32 -luser32 -lkernel32 -lcomctl32 -mwindows
Output size is 37.10 KB
I would prefer to use the C compiler, and not C++, since I don't have any specific C++ code. Am I able to force or use just the C compiler, or is there another reason why the C++ compiler is invoked?