Results 1 to 7 of 7

Thread: g++ not working

  1. #1
    Join Date
    May 2007
    Beans
    9
    Distro
    Ubuntu 8.04 Hardy Heron

    Angry g++ not working

    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. I then tried it in uppercase and lowercase still nothing.

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

  2. #2
    Join Date
    Jul 2005
    Beans
    1,535
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: g++ not working

    Install the package build-essential. It will install g++ in addition to other packages required for building code.
    When I invented the Web, I didn't have to ask anyone's permission.
    ~Tim Berners-Lee on Net Neutrality
    -------------------------------------
    Visit the Ubuntu Programming IRC-channel at #ubuntu-programming (chat.freenode.net).

  3. #3
    Join Date
    Oct 2006
    Location
    Austin, Texas
    Beans
    2,715

    Re: g++ not working

    Install "build-essential"
    Code:
    sudo apt-get install build-essential
    And you should have it.

  4. #4
    Join Date
    May 2007
    Beans
    9
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: g++ not working

    Is there any way I could download this with out using the package manager(i.e. use a windows machine).

    Thanks

  5. #5
    Join Date
    Jul 2005
    Beans
    1,535
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: g++ not working

    The build-essential package is on the CD. I think an install GUI now pops up if you put the CD into the drive.
    When I invented the Web, I didn't have to ask anyone's permission.
    ~Tim Berners-Lee on Net Neutrality
    -------------------------------------
    Visit the Ubuntu Programming IRC-channel at #ubuntu-programming (chat.freenode.net).

  6. #6
    Join Date
    May 2007
    Beans
    9
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: g++ not working

    I put in the install cd and nothing happened.

  7. #7
    Join Date
    May 2007
    Beans
    9
    Distro
    Ubuntu 8.04 Hardy Heron

    Talking g++ now working

    I upgraded and the CD worked.

    Thnaks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •