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.

FREE DNS Is Back

Sign Up Now
> C On Linux, How Do I work C on Linux
Raver
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
 
Start new topic
Replies (1 - 4)
Corey
post Apr 11 2003, 12:28 PM
Post #2


Its GNU/Linuxhelp.net
*******

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) Linuxhelp.ca Administrator
cquilliam-AT-gmail-dot-com

Want to help out Linuxhelp.net? 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
michaelk
post Apr 14 2003, 06:50 PM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,800
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.
./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
Go to the top of the page
 
+Quote Post
jetblackz
post Apr 16 2003, 03:05 PM
Post #4


./configure
***

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



http://jetblackz.freeservers.com/CProgramming.html


--------------------
Go to the top of the page
 
+Quote Post
digitalturbulenc...
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()
{
printf("hello!n");
return (0);
}

type:
gcc your_file.c -o your_file

than excute it with:
./your_file


--------------------
Free disposable email addresses to
stop spam mails!
Try it: TrashMail.net
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: 22nd November 2017 - 02:20 AM