• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 723
  • Last Modified:

Makefile/gcc problem -'cc1plus'

I was trying to install the algorithm animation software: POLKA, but for some reason, the gcc compiler gives me an error when I run the Makefile:

gcc -I. -I/usr/include/X11 -c polkawidgetathena.C
gcc: installation problem, cannot exec `cc1plus': No such file or directory

      I don't see why it's trying to run 'cc1plus', there's nothing in the Makefile with this, and nothing in the .C file either.  Any ideas where it's getting this from, and how I can get by it?
0
sackeri
Asked:
sackeri
1 Solution
 
ahoffmannCommented:
Your file extension is .C (capital C), so gcc asumes a C++ file and calls cc1plus.
Fix your gcc installation (including PATH), or rename your file if it is traditional c
0
 
sackeriAuthor Commented:
That was it!  Thanks a lot ahoffmann.
0
 
dcjacksonCommented:
I am getting the exact error sackeri was getting except i am using c++.

How should I go about fixing my gcc installation?

Oh, and here is another question:  I have heard that I should use g++ command to compile c++ software.  My gcc command works but the g++ command is not found.

Any ideas?
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now