Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Programming in Linux _ C On Linux

Posted by: Raver Apr 11 2003, 11:59 AM

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.

Posted by: Corey Apr 11 2003, 12:28 PM

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.

Posted by: michaelk Apr 14 2003, 06:50 PM

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.

Posted by: jetblackz Apr 16 2003, 03:05 PM

Posted by: digitalturbulence Apr 17 2003, 04:21 AM

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:

Powered by Invision Power Board (
© Invision Power Services (