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.
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.
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.
./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
Apr 16 2003, 03:05 PM
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()
{
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.