Help, I can't compile C++ (18)

1 Name: #!/usr/bin/anonymous : 2009-01-19 00:23 ID:e9qfmV/0

I have a linux computer with gcc. I can compile C programs, but when I try to compile C++ programs, I get the following error message:

error trying to exec 'cc1plus': execvp: No such file or directory

I don't understand what this error message means, or how to fix it. Any anon who could help me?

2 Name: #!/usr/bin/anonymous : 2009-01-19 01:04 ID:Heaven

Install your C++ compiler correctly.

3 Name: #!/usr/bin/anonymous : 2009-01-20 22:10 ID:Heaven

reinstall ubuntu

4 Name: #!/usr/bin/anonymous : 2009-01-22 06:25 ID:EtqgNRKN

Install a distro that sucks less. Like Arch Linux or Gentoo.

Good luck!

5 Name: #!/usr/bin/anonymous : 2009-02-09 00:51 ID:O9Ph6Y15

use g++ not gcc idiot

6 Name: #!/usr/bin/anonymous : 2009-02-09 02:04 ID:3ep3ivSL

>>5
gcc can compile both, c and c++

7 Name: #!/usr/bin/anonymous : 2009-02-09 12:13 ID:Heaven

Not if the C++ compiler backend isn't installed.

8 Name: #!/usr/bin/anonymous : 2009-02-10 04:26 ID:ZgozYcxy

Google may be your friend in this situation.

9 Name: #!/usr/bin/anonymous : 2009-02-18 04:34 ID:Ub9IyE/R

>>6
"gcc can compile both"... by calling g++ when you screw up and pass it a C++ file. Same as gpc, g77, and so on.

Install g++.

10 Name: #!/usr/bin/anonymous : 2009-02-19 12:54 ID:Yu/DYCxX

>>6
Wrong. gcc is the gnu C compiler, which is a C compiler
You must have been thinking of GCC, the GNU Compiler Collection.

11 Name: #!/usr/bin/anonymous : 2009-02-19 21:03 ID:Heaven

gcc ⊂ GCC

12 Name: abhoriel : 2009-02-21 19:16 ID:+jtscp65

Your compiler is not properly installed.

on your Ubuntu machine, type
sudo apt-get install build-essential

that will install everything you need for basic development, including compiling your C++ code.

13 Name: #!/usr/bin/anonymous : 2009-02-24 10:38 ID:Rje5a9QM

>>1
As >>4 said, install a distro that sucks less and as several others said gcc uses g++ internally so check whether your compiler is installed properly.

14 Name: #!/usr/bin/anonymous : 2009-02-24 12:37 ID:Heaven

Let's play the redundant replies game!

>>1 - Question
>>2 - Complete reply that needs no further elaboration unless OP asks for clarification
>>3- - Various rephrasings of >>2

15 Name: #!/usr/bin/anonymous : 2009-02-24 23:50 ID:Heaven

>>14 - Holier-than-thou sage-ing.

Check!

16 Name: #!/usr/bin/anonymous : 2009-02-25 06:19 ID:Heaven

>>14
BUT, he hasn't properly installed his compiler!!! FFUUU--

17 Name: #!/usr/bin/anonymous : 2009-02-25 10:47 ID:Heaven

Four sage in a row will bring death to this thread.

18 Name: #!/usr/bin/anonymous : 2009-03-02 04:49 ID:Heaven

>>15,17
Hi, welcome to 4-ch and thanks for participating! The introductory guide might interest you. It's pretty straightforward and should only take a minute of your time, and you might learn a thing or two from it.

We're glad to have you as a member of our community!
This thread has been closed. You cannot post in this thread any longer.