unbuntu compiler C++

Asked by cadip8

Hi, i want to know how to compile a C++ program in unbuntu. With language C, it is OK. Need I some package to download and install? I don't know what to do.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gcc-defaults Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
plutino (plutino) said :
#1

sudo apt-get install g++

this gives you the gnu C++ compoler.

Revision history for this message
cadip8 (cadip8) said :
#2

Now, i already dowload and install this package on my computer. which commands to compile and executemy file if it's name is "example.cpp"?

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

This question is associated to "update-manager" package.

As additional tips, you can click on this launchpad page tabs:

- the "Answers" tab will allow you to see all already answered questions related to this package;
- the "Bugs" will allow you to see the known bugs related to this package.

This might helps you to solve your issue, by the way is a good starting point.

Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#4

Better...

This question is associated to "gcc-defaults" package.

As additional tips, you can click on this launchpad page tabs:

- the "Answers" tab will allow you to see all already answered questions related to this package;
- the "Bugs" will allow you to see the known bugs related to this package.

This might helps you to solve your issue, by the way is a good starting point.

Revision history for this message
cadip8 (cadip8) said :
#5

allright now, after to install g++ package I can run any C++ program correctly. thank you