LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-20-2002, 09:20 AM   #1
vikasreddy
LQ Newbie
 
Registered: Mar 2002
Location: Bangalore, INDIA
Distribution: Mandrake 8.1 and Windose Me( it was OEM)
Posts: 27

Rep: Reputation: 15
where's the C program in linux


everyone keeps talking about GCC. but what is it? i thought i'd start learning c programing but where is the c program in linux.
 
Old 04-20-2002, 09:46 AM   #2
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
C Compiler

Hi Reddy ,

GCC stands for GNU C Compiler.

Its used for compiling source code written in ANSI C Language.

Dont worry about findig where this program is stored in your distribution ( if u insist try the find command or whereis command)
you just type gcc at ur shell and u will find out !

For learning C language a lots of online as well study books are avilable.

Regards,
Xanthium.
 
Old 04-22-2002, 05:05 PM   #3
abrakadabra
Member
 
Registered: Apr 2002
Location: Denver
Distribution: SuSe,RedHat,Mandrake,
Posts: 109

Rep: Reputation: 16
Lightbulb

Hi,
I thought I'd give my input on this. Basically when you write a program in C you use a text editor ( my choice is vi ) to write the code. Then you use the gcc compiler to compile the code and create a program you can execute. Try going on line and search for tutorials on C programming.
Good luck!

 
Old 04-23-2002, 10:19 AM   #4
verryhi
LQ Newbie
 
Registered: Apr 2002
Location: columbus, oh
Distribution: slackware
Posts: 8

Rep: Reputation: 0
actually now it stands for 'GNU Compiler Collection'

but thats of no consequence..

check out the man page.. there are more options than you can shake a stick at... but u only need a few of them..

ex..

gcc mysource.c -Wall -o binfilename

down with all ide'z, ive wrote megs and megs of code in kwrite with gcc.. a debgger would be nice but ive been too lazy to learn gdb..

the compiler collection part is because it supports all kindz of code.. like c++, java, and uh others.. that was a prett big list huh.. check out http://gcc.gnu.org/ for more info..
 
Old 04-23-2002, 06:29 PM   #5
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
I'll agree about IDEs for programming with one exception, which in my narrow definition of great software is one of the most astonishing pieces of software ever written.

Emacs with the highlighted syntax option is the best IDE for java, perl, or C I have ever seen. I don't think much of the keystroke navigation (Ctrl+F etc.) but that's because it's a really old program and Ctrl keys were around before arrow keys!

Try it and you'll never go back.

Bert
 
Old 05-03-2002, 03:36 PM   #6
kwilding
LQ Newbie
 
Registered: May 2002
Location: Romford
Posts: 2

Rep: Reputation: 0
c complier

I am fairly new to linux, but you can use
which gcc or which cc
which tells you where your compiler resides

and
gcc -v also tells you the version that you have.

My question. Is there an easy way to upgrade the gcc compiler, as I spent an hour configuring and installing gcc3.0.4 today with erroprs at the end and lots of warnings along the way.

I did tar -xvf gcc-3.0.4.tar which unpacked into /tmp/gcc-3.0.4
then ./configure
then make bootstrap
then make install

But it failed miserably in the make bootstrap section, cannot remember the errors.

Any suggestions welcome.
 
Old 05-04-2002, 04:31 PM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,408

Rep: Reputation: 108Reputation: 108
It I remember correctly, I did just make instead of make bootstrap and it was installed (about 2 months ago, so I'm not sure).
 
Old 05-05-2002, 08:46 AM   #8
lhoff
Member
 
Registered: Jun 2001
Location: Chicago
Distribution: Mandrake 10.0 Official
Posts: 181

Rep: Reputation: 30
Quote:
Originally posted by Bert
I'll agree about IDEs for programming with one exception...
What are IDE's?

(Sorry to butt in...)
 
Old 05-07-2002, 02:51 PM   #9
Winter
LQ Newbie
 
Registered: May 2002
Location: Washington State
Distribution: Red Hat 7.0
Posts: 22

Rep: Reputation: 15
Pico is a cute editor too.. if you dont know your way around "vi" touch pico.. pico is nice. pico don't bite.. pico be good text editor.

save pico file as myfirstcfile.c
then at $ or %

type

gcc myfirstcfile.c -o myfirstexe

the -o myfirstcfile part just says that instead of turning myfirstcfile.c into an executable named a.out it is named "myfirstexe" whatever you want.. then you can compile lots of programs in the same directory without overwriting your a.out's

pico be smooth for newbie.
 
Old 05-08-2002, 03:20 AM   #10
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Integrated Development Environment.

Think of Forte or Borland Visual <whatever>.

Most people don't think of emacs as an IDE but it is and it's a powerful one.

Bert
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a program for Linux that does this? signmeuptoo Linux - General 4 10-16-2005 01:30 AM
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


All times are GMT -5. The time now is 06:10 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration