Solved

Makefile/gcc problem -'cc1plus'

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Weird Samba Connectivity Issue... 7 40
linux pull logs and export FTP 4 71
awk file 6 54
linux 13 50
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

809 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