PDA

View Full Version : g++ not working



linlover
May 7th, 2007, 01:10 AM
The other day I was on a search for a C++ compiler in Linux and read about g++ on these message boards.:) Then I tried it and got an error message saying that bash did not recognize the command.:confused: I then tried it in uppercase and lowercase still nothing.:(

Here is the just of what I typed in "g++ program.cpp"

hod139
May 7th, 2007, 01:58 AM
Install the package build-essential. It will install g++ in addition to other packages required for building code.

Wybiral
May 7th, 2007, 01:59 AM
Install "build-essential"

sudo apt-get install build-essential
And you should have it.

linlover
May 8th, 2007, 10:41 PM
Is there any way I could download this with out using the package manager(i.e. use a windows machine).

Thanks

hod139
May 8th, 2007, 11:39 PM
The build-essential package is on the CD. I think an install GUI now pops up if you put the CD into the drive.

linlover
May 13th, 2007, 11:55 PM
I put in the install cd and nothing happened.

linlover
May 22nd, 2007, 09:19 PM
I upgraded and the CD worked.

Thnaks