Codelite and C language compiling?

CodeLite installation/troubleshooting forum
Andrevoce
CodeLite Curious
Posts: 1
Joined: Wed Jan 06, 2016 3:12 am
Genuine User: Yes
IDE Question: C,C
Contact:

Codelite and C language compiling?

Post by Andrevoce »

I am new to Codelite and programming in general. I just installed Codelite on my computer. I am trying to create a new workspace compliing in the C language, but when I click create new workspace, all I get is C++, node.js and PHP. What happened to the C language? Did I miss a step somewhere when I downloaded the program? Thanks for all your help. Andrew
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Codelite and C language compiling?

Post by DavidGH »

Hi,
Did I miss a step somewhere when I downloaded the program?
No, all is well. Just create a C++ workspace. Then, when you add a project to it (Workspace > New Project) select a gcc one instead of g++.

Regards,

David
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite and C language compiling?

Post by eranif »

To add to what David wrote, you can also use g++ but make sure that the files that you create have the extension ".c" and not ".cpp" this will make sure that even though you chose g++, gcc is invoked instead

Eran
Make sure you have read the HOW TO POST thread
Post Reply