Help - Search - Members - Calendar
Full Version: C On Linux
Linuxhelp > Support > Programming in Linux
How I work on C program in Linux. Like unix I wanted to work on C Programming. On the Terminal Popup, I am getting the Prompt. Now how do I proceed.
Well, i'm no C programmer whatsoever, but I believe you can just open up any text editor (nano, vi, emacs) and write your code, save it someplace (/home/username/projects) and compile it using the gcc compilier.
In addition you will need the compiler, header and lib files installed.

To compile a program example:
gcc -o hello helloworld.c

If all goes well you should have a executable file called hello.
To execute program.

There are a couple of linux programming IDE's called ajunta and kdevelope if you desire to use one.

Borland has an opensource version of its Delphi and C++ Builder if you want an easy way to develope windows programs.
Create a .c file with a text editor, for example emacs,
than compile it with gcc.

for example:

int main()
return (0);

gcc your_file.c -o your_file

than excute it with:
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.