Solved

Makefile/gcc problem -'cc1plus'

Posted on 1998-11-04
3
705 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
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now