Help for C programming

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

Help for C programming

Postby Imran.Plus » Fri Nov 22, 2002 7:29 pm

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.
Imran.Plus
Cadet
 
Posts: 12
Joined: Fri Nov 22, 2002 11:53 am
Website: http://www.plus.com.pk
WLM: imranchandio56@hotmail.com
Location: Multan

Postby AsadR » Sat Nov 23, 2002 8:00 pm

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/DOS-Win-to-Linux-HOWTO-html/DOS-Win-to-Linux-HOWTO-10.html#ss10.2

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

Hope that helped :)

Asad
AsadR
Lance Naik
 
Posts: 36
Joined: Sat Sep 14, 2002 11:27 am
ICQ: 8374759
Location: Khi.pk

Great information...

Postby AamirAkbar » Wed Nov 27, 2002 9:52 am

thks Asad ... that was a great information... :)
Aamir(MS iiu islambad.)
Back Office Engineer
http://www.nsn.com/
(+ 92 345 200 1132)
AamirAkbar
Lance Naik
 
Posts: 33
Joined: Mon Sep 09, 2002 12:53 am
Website: http://www.nsn.com/
WLM: aamirakbar@hotmail.com
Yahoo Messenger: aamirakbarmughal@yahoo.com
Location: Islamabad

Postby Imran.Plus » Thu Nov 28, 2002 7:36 pm

Dear Fellow,
thank u very much for help.
Imran.Plus
Cadet
 
Posts: 12
Joined: Fri Nov 22, 2002 11:53 am
Website: http://www.plus.com.pk
WLM: imranchandio56@hotmail.com
Location: Multan

Postby Tauseef » Fri Dec 13, 2002 8:44 am

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
Tauseef
Naik
 
Posts: 62
Joined: Thu Dec 12, 2002 3:21 pm
Yahoo Messenger: tauseefshazad@yahoo.com
Location: Rawalpindi


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron