How to compile C langauge code?

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

How to compile C langauge code?

Postby sherwani » Tue Jun 06, 2006 5:04 pm

salam
I want to know how to compile C or C++ code in FC4. Pls tell me commands in detail.
Thanks
sherwani
Cadet
 
Posts: 4
Joined: Mon Mar 06, 2006 5:14 pm
Location: Karachi

Postby saquib_javed » Wed Jun 07, 2006 10:06 am

try to google for gcc if u are a cli user of linux or use kdevelop or anjuta
Use Linux and feel Free.
OR
Feel free to use Linux. ;)
saquib_javed
Naib Subedar
 
Posts: 344
Joined: Sat Apr 10, 2004 9:07 pm
Website: http://www17.brinkster.com/saquibjaved
Location: Karachi

Re:

Postby LinuxFreaK » Thu Jun 08, 2006 6:02 am

Dear sherwani,
Salam,

FYI, http://users.actcom.co.il/~choo/lupg/tu ... -unix.html

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Re: How to compile C langauge code?

Postby nomankhn » Thu Jun 08, 2006 4:18 pm

sherwani wrote:salam
I want to know how to compile C or C++ code in FC4. Pls tell me commands in detail.
Thanks


Dear

vi test.c

#include <stdio.h>
#include <conio.h>

main()
{
printf("RedHat Enterprise Linux version 4.0");
}

after writing program save it.

khanzada # gcc test.c -o test
#./test (To Run your program)

Regards
Noman Liaquat Khanzada Rajput
nomankhn
Colonel
 
Posts: 714
Joined: Wed Aug 07, 2002 8:00 pm


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 3 guests