LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-27-2003, 01:10 AM   #1
ZhiYi
Member
 
Registered: Feb 2003
Distribution: Redhat
Posts: 30

Rep: Reputation: 15
How to program in C in linux?


Hi,
I am trying to do C programming in linux. The default shell I use is bash.
Is there a shell to do C programming?

This is because when i type 'gcc -ansi hello.c -o hello.c' , there is an error message saying that the command is not found.

What command should I type to get to the correct shell ?
 
Old 07-27-2003, 01:15 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
you should have gcc unless you didn't install the development stuff. to make sure that it's installed, type this command:

rpm --query gcc

if it's not installed, then you can install them from your redhat cds.
 
Old 07-27-2003, 01:19 AM   #3
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
No there is no shell to do C programming, you simply edit your files, compile and go. The reason you are getting the "command not found" error is because gcc isn't installed. Install it and the development libraries that you need.
 
Old 07-27-2003, 06:35 AM   #4
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 617

Rep: Reputation: 31
hi,
what do you mean with C programming ?
an editor to write C program ? Emacs for example and use xterm to compile.
a graphical interface ? snavigator or grass for example
a graphical interface for C program ? like FLTk ( www.fltk.org ) or glade ( on gnome ) or kdedevelop ( on kde ) .

best regards
bela
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sms program and database in linux web program in windows.. does not see each other.. keikun_naruchan Programming 0 07-06-2005 01:40 AM
A Linux dist that will run Linux under Windows like a program caderyn Linux - Distributions 4 05-24-2004 06:43 PM
Brand New to Linux, intermediate Programmer, want to program for linux destop apps albertrosa Programming 4 12-08-2003 07:49 AM
Looking for a Linux Program Viper Linux - Software 25 08-16-2003 09:50 PM
where's the C program in linux vikasreddy Programming 9 05-08-2002 03:20 AM


All times are GMT -5. The time now is 03:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration