LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-08-2008, 03:31 AM   #1
fmpfmpf
LQ Newbie
 
Registered: May 2008
Posts: 25

Rep: Reputation: 15
GCC questions


i am using Ubuntu 8.04

What is GCC?
How do i know if my Linux has GCC?
How do i check my GCC version?

thank you
 
Old 05-08-2008, 03:40 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by fmpfmpf View Post
i am using Ubuntu 8.04
Congratulations!
Please edit you profile to reflect this. Also, add in a location for you. This sort of thing helps you get better responces.

Quote:
What is GCC?
GCC=GNU Compiler Collection. It is used to compile C/C++ and other programs.

Quote:
How do i know if my Linux has GCC?
You installed it. You normally know if you have installed something. Of course, you can also find out by trying to invoke it in a terminal, thus:

~$ gcc
gcc: no input files

... so, gcc is installed. If it had said - bash: gcc: command not found - then gcc is not installed.

Ubuntu 8.04 does not have development tools by default. You install the main set with:

sudo apt-get install build-essential

Quote:
How do i check my GCC version?
$ gcc --version
gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

... so my version is 4.1.3

I take it you have tried to install something and got an error that it needs gcc version xyz?

Last edited by Simon Bridge; 05-08-2008 at 03:44 AM.
 
Old 05-08-2008, 04:07 AM   #3
ischi
Member
 
Registered: Apr 2008
Location: Tübingen
Distribution: Fedora 9 (Thinkpad T60), Debian 3.1 (Server)
Posts: 51

Rep: Reputation: 15
Code:
man gcc
 
Old 05-08-2008, 06:03 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by ischi View Post
Code:
man gcc
That will only show if the manpage is installed. It has been known for these to be installed without the program.
 
  


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
equivalent of conio.h in gcc? (and some more gcc-newbie questions) Valkyrie_of_valhalla Programming 3 09-22-2007 04:32 AM
gcc questions laasunde Linux - Software 3 01-25-2006 12:02 AM
some questions about gcc version sumargin Ubuntu 1 01-09-2006 03:55 PM
Suse 9.0 gcc problems and a few questions {O_o} Linux - Newbie 2 06-17-2004 02:05 PM


All times are GMT -5. The time now is 08:37 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