Find the answer to your Linux question:
Results 1 to 2 of 2
Hello All, I am using linux machine and I had installed a gcc ( version 4.1.2 20071124 ) (RED HAT 4.1.2-42 ) Now i want to run a C++ programs ...
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    45

    Thumbs up g++ command not found?

    Hello All,

    I am using linux machine and I had installed a gcc ( version 4.1.2 20071124 ) (RED HAT 4.1.2-42 )

    Now i want to run a C++ programs on this machine, I know that for comparing .cpp programs we need g++ command , correct me if I am wrong ?

    But there is no command found g++.

    my question is,

    1. which compiler need to compile .cpp ( c++ ) program ?

    2. what is the command to compile c++ programs?

    3. If it will not come with gcc , what is the procedure to install?

    thanks,

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    I think you need to install libstdc++ and gcc-c++ packages.

Posting Permissions

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