Results 1 to 5 of 5

Thread: g++ command not found

  1. #1
    Join Date
    Feb 2010
    Beans
    21

    g++ command not found

    I cannot compile a little program that has always compiled on other Linux distributions. The makefile reads:

    start: start.o
    g++ -g -o start start.o
    start.o: start.c
    g++ -g -c start.c

    The response is:

    g++ -g -c start.c
    make: g++: Command not found

    I must have made a very foolish error, for I see no other posts about it.

  2. #2
    Join Date
    Jun 2007
    Location
    Paraparaumu, New Zealand
    Beans
    Hidden!

    Re: g++ command not found

    Try the following and let us know how you get on:
    Code:
    sudo apt-get install build-essential g++
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  3. #3
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,628

    Re: g++ command not found

    Did you install:

    Code:
    sudo apt-get update; sudo apt-get install build-essential

  4. #4
    Join Date
    Feb 2010
    Beans
    21

    Re: g++ command not found

    Thanks for the amazingly quick reply. The "apt-get" did install g++. That solves the problem posed by my post.

  5. #5
    Join Date
    May 2010
    Beans
    1

    Re: g++ command not found

    Thanks a lot lisati.

Tags for this Thread

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
  •