LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   need C++ for ubuntu 10.04 (https://www.linuxquestions.org/questions/linux-software-2/need-c-for-ubuntu-10-04-a-834563/)

kakarot_adi 09-26-2010 07:39 AM

need C++ for ubuntu 10.04
 
I need a C++ compiler which is strictly for c++. cant use anjuta as it does not favour c++...

GrapefruiTgirl 09-26-2010 07:48 AM

Why not use GCC (GNU Compiler Collection), specifically `g++` which is the component used for compiling C++ programs? This would be the default, and most common choice, on Linux. Unless I'm mistaken, GCC and g++ should already be installed. Try in a console:
Code:

which g++
to see if it is already there.

eveningsky339 09-26-2010 10:17 AM

Quote:

Originally Posted by GrapefruiTgirl (Post 4109386)
Why not use GCC (GNU Compiler Collection), specifically `g++` which is the component used for compiling C++ programs? This would be the default, and most common choice, on Linux. Unless I'm mistaken, GCC and g++ should already be installed. Try in a console:
Code:

which g++
to see if it is already there.

Oddly enough g++ does not ship with Ubuntu (but gcc does).

Run this command in your terminal:

Code:

sudo apt-get install build-essential
The build-essential package contains g++ among other utilities for creating .deb packages.

GrapefruiTgirl 09-26-2010 01:32 PM

@ eveningsky,

thanks, I did not know that - and yes, it is rather odd. :)


All times are GMT -5. The time now is 01:27 PM.