Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> C On Linux, How Do I work C on Linux
post Apr 11 2003, 11:59 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 11-April 03
Member No.: 662

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.
Go to the top of the page
+Quote Post
post Apr 11 2003, 12:28 PM
Post #2

Its GNU/

Group: Admin
Posts: 1,254
Joined: 21-September 02
From: St John's, Newfoundland, Canada
Member No.: 3

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.

Corey Quilliam
(former) Administrator

Want to help out Check out our Linuxhelp Wiki and see if there are some articles you would like to submit!!

Ubuntu 8.04 64-bit - Work Laptop (HP-Compaq NC6400 Core2)
Kubuntu 8.04 64-bit - Desktop (HP m8120n QuadCore)
Ubuntu 6.04 - Server (I'm not upgrading this baby until support runs out in 2012) (Some old POS dell)
Go to the top of the page
+Quote Post
post Apr 14 2003, 06:50 PM
Post #3

Its GNU/

Group: Support Specialist
Posts: 1,807
Joined: 23-January 03
Member No.: 360

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.
Go to the top of the page
+Quote Post
post Apr 16 2003, 03:05 PM
Post #4


Group: Members
Posts: 98
Joined: 1-April 03
Member No.: 613

Go to the top of the page
+Quote Post
post Apr 17 2003, 04:21 AM
Post #5

Whats this Lie-nix Thing?

Group: Members
Posts: 21
Joined: 5-April 03
Member No.: 633

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:

Free disposable email addresses to
stop spam mails!
Try it:
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 20th July 2018 - 01:41 PM