Find the answer to your Linux question:
Results 1 to 3 of 3
hi, i am new to linux using fedora 13. I installed gcc using command yum install gcc and i learned that when i will type g++ -v it will show ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    1

    Unhappy GCC Fedora not working


    hi, i am new to linux using fedora 13. I installed gcc using command yum install gcc and i learned that when i will type g++ -v it will show the version of the gcc but it displays command not found. Whats wrong i am not able to compile my CPP program. Help me compiling my cpp program which is in / dir.
    i am running the command g++ -v as su.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi and Welcome !

    Execute this in Terminal
    Code:
    rpm -qa gcc
    Post output here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    699
    as root run

    Code:
    yum -y install 'gcc-c++'
    g++ (the c++ compiler) is not installed by default, only the C compiler.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

Posting Permissions

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