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.
Help for C programming
-
- Cadet
- Posts: 12
- Joined: Fri Nov 22, 2002 11:53 am
- Location: Multan
- Contact:
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:
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
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
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
-
- Lance Naik
- Posts: 33
- Joined: Mon Sep 09, 2002 12:53 am
- Location: Islamabad
- Contact:
Great information...
thks Asad ... that was a great information...
-
- Cadet
- Posts: 12
- Joined: Fri Nov 22, 2002 11:53 am
- Location: Multan
- Contact: