LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-26-2013, 01:18 PM   #1
mhill37
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Rep: Reputation: 0
C++ Compiler in Ubuntu?


I was under the impression that Ubuntu came with a bunch of software.
However, I went to the Software Center to see if a C++ compiler was available, but I didn't see one listed; there was only, "Calculator", "Text Editor", etc. And I see the LibreOffice products.

What is the recommended C++ compiler for Ubuntu and where do I find it? If it is already here, what am I overlooking, since I don't see it?
(I just installed Ubuntu 13.04 and am running it from a USB drive.)
 
Old 08-26-2013, 01:31 PM   #2
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,908

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
The standard compiler is called 'gcc' and you can easily install it with:

Code:
sudo apt-get install gcc
or to install it along with several other helpful development tools:

Code:
sudo apt-get install build-essential
 
Old 08-26-2013, 01:40 PM   #3
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,051

Rep: Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100
Quote:
Originally Posted by snowpine View Post
or to install it along with several other helpful development tools:

Code:
sudo apt-get install build-essential
"helpful" might be understating that. Installing gcc on its own is typically useless. You need some other things to make gcc useful. It is possible to figure out and install exactly and only what you need for some specific use of gcc (which will likely still be more than just gcc itself). But it is a lot easier to install build-essential and get everything you need for many typical uses of gcc.
 
Old 08-26-2013, 01:43 PM   #4
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,908

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
I would say "helpful" almost to the point of being "essential"
 
Old 08-26-2013, 10:15 PM   #5
vrrivaro
LQ Newbie
 
Registered: Jul 2008
Posts: 9

Rep: Reputation: 0
The build-essential program set contains only the command line utilities. You will also need to install the graphical tools if you expect an IDE of some sort.

This one will do the trick nicely: http://www.youtube.com/watch?v=dnUTktvF21c

Last edited by vrrivaro; 08-26-2013 at 10:17 PM. Reason: Fixed up my grammar.
 
Old 08-27-2013, 02:49 PM   #6
vrrivaro
LQ Newbie
 
Registered: Jul 2008
Posts: 9

Rep: Reputation: 0
Another thing:

I kind of hinted at the fact that there are many IDEs that you can choose. Search for them as IDE in the software center. However, it will also find unrelated stuff (being your search query such a short string).

A short, non exhaustive list of IDEs is:

* Eclipse
* Netbeans
* Geany
* Code::Blocks
* MonoDevelop
* Anjunta IDE
* CodeLite
* Monkey Studio IDE

And that is just a few of the ones available through the software center, which not all are.

I recommend that you also look into installing Glade 3 or even 2. These will provide you with a graphical UI designer. However, Glade already is a prerequisite to installing a few IDEs, and they all support it.
 
  


Reply

Tags
build-essential, c++ compiler, ide, ubuntu


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
[SOLVED] How to get f77 compiler on Ubuntu 12.04 YankeePride13 Linux - Server 23 12-17-2012 01:55 PM
how to use ubuntu C++ compiler judoka Linux - Newbie 3 07-14-2009 11:55 AM
Java Compiler in Ubuntu? MexDeath Programming 11 11-30-2008 03:01 PM
C/C++ compiler for Ubuntu 5.04 crash_override_me Ubuntu 8 11-17-2008 04:35 AM
C or gcc compiler in Ubuntu alar Ubuntu 3 09-20-2006 11:08 PM


All times are GMT -5. The time now is 01:08 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 Google+: linuxquestions
Open Source Consulting | Domain Registration