Help - Search - Members - Calendar
Full Version: C On Linux
Linuxhelp > Support > Programming in Linux
Raver
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.
Corey
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.
michaelk
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.
./hello

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. www.borland.com
jetblackz
http://jetblackz.freeservers.com/CProgramming.html
digitalturbulence
Create a .c file with a text editor, for example emacs,
than compile it with gcc.

for example:

int main()
{
printf("hello!n");
return (0);
}

type:
gcc your_file.c -o your_file

than excute it with:
./your_file
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-2017 Invision Power Services, Inc.