Find the answer to your Linux question:
Results 1 to 6 of 6
Hi all, I've tried compiling a c++ program with the command gcc -o objname filename.cpp I get a message as 'gcc: error trying to exec 'cc1plus': execvp: No such file ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Location
    Harihar, India
    Posts
    11

    OpenGL and GCC problem


    Hi all,
    I've tried compiling a c++ program with the command
    gcc -o objname filename.cpp

    I get a message as 'gcc: error trying to exec 'cc1plus': execvp: No such file or directory'

    What does it mean? and how to solve the problem?

    I want to run a openGL program in C++, what packages should I install?

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Use command g++ not gcc, gcc compile only c.
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Location
    Harihar, India
    Posts
    11
    When used g++, it said, command not found!!

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Mar 2009
    Posts
    7
    Try to install g++ libraries.

  6. #5
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    Quote Originally Posted by zaitzev View Post
    Try to install g++ libraries.
    Just install g++, libraries are the dependacies, will be installed automatically.
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

  7. #6
    Just Joined!
    Join Date
    Mar 2009
    Location
    Harihar, India
    Posts
    11
    Thanks all!
    I tried a lot of things and nothing worked sooner or later!!

    So, i switched to Fedora 10 and everything's quite well!

    Thank you so much!

Posting Permissions

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