Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 16-06-2006, 04:40 PM   #1 (permalink)
The Linux Man !
 
paragkalra's Avatar
 
Join Date: Jan 2006
Location: Nagpur, Maharashtra, India
Posts: 217
Default C language in Linux?


I know C language.

Now i want to practise it out in Linux. Can any one tell what are the exact differences like compiling or how to include various header files etc?

Also are there any tutorials or any good book available on C under Linux?
__________________
Parag.A.Kalra, The Linux Man
http://www.paragkalra.com/
In this world without WALLS and GATES who need WINDOWS! USE LINUX! STOP PIRACY! GO OPEN SOURCE!
paragkalra is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 16-06-2006, 05:06 PM   #2 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: C language in Linux?

AFAIK the basic C (command line) is still the same. Write it . Save it. Locate the fle thro the terminal and type "gcc fn.c" to compile. You will get a .out file, this will be an executable.
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 16-06-2006, 05:24 PM   #3 (permalink)
Wise Old Owl
 
deathvirus_me's Avatar
 
Join Date: May 2005
Location: Kolkata, India
Posts: 1,838
Default Re: C language in Linux?

Well .. the programs are the exact same ... except the part where u accessed the system .. and the best part is that the C compiler is built into linux .. so u won't need any third party app ... throw in the console ... make the ".c" file ... i think u have to compile by using the command "gcc" .. donno .. forgot ... did it a long time ago ...
deathvirus_me is offline  
Old 16-06-2006, 08:01 PM   #4 (permalink)
Alpha Geek
 
Satissh S's Avatar
 
Join Date: Mar 2005
Location: Chennai , India
Posts: 693
Default Re: C language in Linux?

u can use the,
gcc -o <fn_name> fn.c

to specify the name of the file say,
gcc -o shell_sort shellsort.c

AFAIK
Some headers such as conio.h aren't needed. Also call main function as int main() and return an integer. Others work alike.
__________________
Call it Emacs,
Love it or Leave it.
Satissh S is offline  
Old 17-06-2006, 11:18 AM   #5 (permalink)
Wise Old Owl
 
JGuru's Avatar
 
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
Default Re: C language in Linux?

If you use Suse 10.1 or Mandriva Linux Or FC5 , you can install the full documentation for C/C++ with Help. Almost any Linux will have C/C++ libraries.
JGuru is offline  
Old 17-06-2006, 01:11 PM   #6 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Smile Re: C language in Linux?

I am also trying to learn C in Linux.I jus d/l a tutorial from
http://http://www.learn-programming.za.net/learn_c_programming.html
and installed Anjuta IDE in my Ubuntu Dapper.now..Let's See
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 17-06-2006, 02:22 PM   #7 (permalink)
FooBar Guy
 
GNUrag's Avatar
 
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
Default Re: C language in Linux?

Quote:
Originally Posted by Satissh S
Some headers such as conio.h aren't needed. Also call main function as int main() and return an integer. Others work alike.
Because conio.h is borland extensions for C language. Its not a part of ANSI C
__________________
- --
http://web.gnuer.org
GNUrag is offline  
Old 17-06-2006, 02:23 PM   #8 (permalink)
Wise Old Owl
 
vignesh's Avatar
 
Join Date: Jul 2004
Location: Chennai
Posts: 1,659
Default Re: C language in Linux?

Change void main() to main() or int main(), There`s is no conio.h ,graphics.h and a few more changes
vignesh is offline  
Old 17-06-2006, 03:08 PM   #9 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: C language in Linux?

If you use Dev C++ on windows rather than TC++ then there will be no problems switching (A few maybe... like FS etc...)
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 17-06-2006, 07:23 PM   #10 (permalink)
The Lord of Death
 
Yamaraj's Avatar
 
Join Date: May 2005
Location: यमलोक
Posts: 253
Default Re: C language in Linux?

Quote:
Originally Posted by GNUrag
Because conio.h is borland extensions for C language. Its not a part of ANSI C
A minor correction. The "Official C Standard" is now ISO C, not ANSI C.
Yamaraj is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by topgear

Advertisement




All times are GMT +5.5. The time now is 08:46 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2