How can I make sure that gcc will get selected not g++?
In the compiler setup, setup
gcc.exe as compiler for C++, too.
If this conflicts with other project of yours, make a copy of the GCC compiler and name it "GCC, C only" or alike. Then use this compiler with the projects targets, where needed.