C Workspace?
-
- CodeLite Curious
- Posts: 3
- Joined: Wed May 03, 2017 12:35 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
C Workspace?
I only see C++ available. How do I enable a C workspace? I'm new to coding.
-
- CodeLite Plugin
- Posts: 819
- Joined: Wed Sep 03, 2008 7:26 pm
- Contact:
Re: C Workspace?
Hi,
Create a new C++ workspace (perhaps they should be called C/C++ workspaces).
If you want to write a non-gui C program, add a new project to the workspace, choosing a 'Simple executable (gcc)' template from the 'Console' list.
Or, if you want a gui project and it must be C rather than C++, you can choose either of the 'Executable GUI GTK...' templates from the 'GUI' list. However they uses the gtk+ toolkit, either version 2 or 3, to provide the gui, so it means you would have to learn how to interact with gtk+.
Either way, check it builds and runs, then start altering the code to do what you wish.
Regards,
David
Create a new C++ workspace (perhaps they should be called C/C++ workspaces).
If you want to write a non-gui C program, add a new project to the workspace, choosing a 'Simple executable (gcc)' template from the 'Console' list.
Or, if you want a gui project and it must be C rather than C++, you can choose either of the 'Executable GUI GTK...' templates from the 'GUI' list. However they uses the gtk+ toolkit, either version 2 or 3, to provide the gui, so it means you would have to learn how to interact with gtk+.
Either way, check it builds and runs, then start altering the code to do what you wish.
Regards,
David
-
- CodeLite Curious
- Posts: 3
- Joined: Wed May 03, 2017 12:35 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: C Workspace?
Thanks David. I'll keep this in mind. I am using a course to learn C. I'm pretty much a total beginning, though for a few months in 2015 I tried to learn Python, without success.
-
- CodeLite Curious
- Posts: 3
- Joined: Wed May 03, 2017 12:35 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: C Workspace?
What compiler should I use? Clang?
-
- CodeLite Plugin
- Posts: 819
- Joined: Wed Sep 03, 2008 7:26 pm
- Contact:
Re: C Workspace?
Whichever you like. gcc is the commoner choice, except on OSX.What compiler should I use? Clang?