Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I install g++ or pentium builder packages? Do I need to download those?

Because when I try to compile the program and with this statement:

g++ -Wall -W -Werror main.cpp -o HelloWorldCPP`

This is showing that it needs packages, i.e. g++ and pentium builder, so what should I do?

share|improve this question
add comment

1 Answer 1

Just run

sudo apt-get install build-essential

in the terminal to install all common packages required for compiling native C/C++ software. This is a metapackage, installing several actual packages you will need (including gcc/g++).

Alternatively, you can install this by clicking this link to install via software centre: build-essential Install build-essential

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.