Why does the code blocks compile using g ++ in a project set up as "C"

1

I'm learning C and using CodeBlocks,

I was in% File > New > Project > "Console Application" > "GO" > Next

and the question appears

Please select the language you want use.

I select C . but when compiling a simple HelloWord appears on the console

gcc -Wall -g -std=c11  -c /opt/workspace/learningC/Basics/main.c -o 
g++  -o bin/Debug/Basics obj/Debug/main.o   

Why is it using g++ ?

    
asked by anonymous 20.04.2017 / 22:41

1 answer

0

Have you used codeblocks or installed it now? Please give more details of your problem.

Make sure the compiler is selected correctly.

After you have selected C, click next will appear the screen to configure the project name, then click next again and the following screen will appear:

Check which compiler is selected, this is the first solution that came to my head.

    
21.04.2017 / 10:35