I have got a c++ program that uses a c file. One of my c++ functions calls a function from this c file. Codeblocks compiles this c file with gcc and everything else with g++. This makes the .o files incompatible with each other and I get undefined reference to function when it links it.
Is there any way to force code blocks to always g++ for this particular project?
I could just compile the file separately and then it would never need to recompile it ever again, but it could still be good to know.