Help for C programming

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
Locked
Imran.Plus
Cadet
Posts: 12
Joined: Fri Nov 22, 2002 11:53 am
Location: Multan
Contact:

Help for C programming

Post by Imran.Plus »

Dear Sir,
I am new user of linux. I want to do my C programming work on linux plz tell me how I can do all these things. plz tell me in detail with commands.
I am really thanks full to you.
AsadR
Lance Naik
Posts: 36
Joined: Sat Sep 14, 2002 11:27 am
Location: Khi.pk
Contact:

Post by AsadR »

Well, programming C in Linux is quite easy, which has something to do with the fact that (nearly) all the software packages in it (including the kernel itself) are open source and are written in C.

First of all, you'll need to learn to use an editor. I personally find "vi" good for the job but it takes some time to learn how to use. You could start off with something like "EMACS" or "pico" which are known to be easier to use.

Compiling is quite straightforward, the standard compiler is called "gcc". The command for a simple compile is:

Code: Select all

gcc file.c -o runme
Where file.c is the name of the file with the C source code and "runme" is the final executable file.

If you're comming from the MS-DOS/Windows side of C programming, you should check out this link:
http://new.linuxnow.com/docs/content/DO ... tml#ss10.2

Here's a link to a quick "vi" tutorial:
http://locutus.kingwoodcable.com/jfd/vi.html

Hope that helped :)

Asad
AamirAkbar
Lance Naik
Posts: 33
Joined: Mon Sep 09, 2002 12:53 am
Location: Islamabad
Contact:

Great information...

Post by AamirAkbar »

thks Asad ... that was a great information... :)
Aamir(MS iiu islambad.)
Back Office Engineer
http://www.nsn.com/
(+ 92 345 200 1132)
Imran.Plus
Cadet
Posts: 12
Joined: Fri Nov 22, 2002 11:53 am
Location: Multan
Contact:

Post by Imran.Plus »

Dear Fellow,
thank u very much for help.
Tauseef
Naik
Posts: 62
Joined: Thu Dec 12, 2002 3:21 pm
Location: Rawalpindi
Contact:

Post by Tauseef »

Try KDevelop. It has similar interface to Visual C++ so you should not have much problem... Combine that with QT Designer and you have a wonderfull RAD tool available for just about any kind of application Including Client Server applications



Tauseef
Locked