Solved

Makefile/gcc problem -'cc1plus'

Posted on 1998-11-04
3
712 Views
Last Modified: 2012-06-21
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
Comment
Question by:sackeri
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
ID: 1638446
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
 

Author Comment

by:sackeri
ID: 1638447
That was it!  Thanks a lot ahoffmann.
0
 

Expert Comment

by:dcjackson
ID: 3089293
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

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question