Why does code Blocks compile using g++ in a project configured as "C"

Asked

Viewed 94 times

1

I’m learning C and using Codeblocks,

I went on
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   

Because he’s using the g++ ?

1 answer

0

Have you already used codeblocks or installed it now? Give more details of your problem.

Check that the compiler is selected correctly.

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

inserir a descrição da imagem aqui

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

  • The project is right as well as compiler. I am using Ubuntu 16.04 and Codeblocks 16.01

Browser other questions tagged

You are not signed in. Login or sign up in order to post.