473,385 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

I'm on a MacBook running mac osx 10.4.11, I have Xcode, gnu, and I'm using the terminal command: g++ -o helloworld helloworld.c

I get the error:
g++: error trying to exec 'cc1plus': execvp: No such file or directory

What does this error mean?

Thanks,
Dan
Jul 13 '08 #1
3 25898
Laharl
849 Expert 512MB
A .c file is C source code. If you're writing C++ code, end it with .cpp instead.
Jul 13 '08 #2
gpraghuram
1,275 Expert 1GB
You can compile a .c file using g++.
I think the installation is not fine or some required components are missing.

Raghu
Jul 14 '08 #3
JosAH
11,448 Expert 8TB
I'm on a MacBook running mac osx 10.4.11, I have Xcode, gnu, and I'm using the terminal command: g++ -o helloworld helloworld.c

I get the error:
g++: error trying to exec 'cc1plus': execvp: No such file or directory

What does this error mean?
It means that your shell could find the g++ frontend of the GNU compiler but that
frontend couldn't find cc1plus, the actual C++ compiler; it could find cpp, the
preprocessor, it already ran. Go to the directory where the g++ frontend is stored
(type: "which g++") and look for the file cc1plus in that same directory or a sub-
directory thereof. If it isn't there your compiler installation is broken; if it is there
some configuration of it went berzerk.

Are you able to compile ordinary C files using 'gcc'?

kind regards,

Jos
Jul 14 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ollie Riches | last post by:
I am executing a DTS programmatically from C# using COM interop. Is it possible to set the 'script file directory' from the C# code? For anyone else you gets an 'Access Denied Error' when...
3
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images ...
2
by: OliviuG | last post by:
I have export to xls functionality in asp.net web form, implemented like this: Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=InvChangeHistory.xls");...
1
by: Jurgen Haan | last post by:
Hiya... I'm trying to get db2 LUW 8.2.6 X86_64 working on a netapp. We're running SLES 10. The software and instance are created locally, but when I try to create a database on a path mounted...
1
by: jcharth | last post by:
Hello for somereason when i execute php files in folder other than the document root, i get error 500 and the php file is downloaded to my browser with the 500 error code. I think it could be...
7
by: facade | last post by:
Hi all, I am new to the VC++. I am stuck in trying to compile my read directory codes in C++. It keeps giving me this error: Error 1 fatal error C1083: Cannot open include file: 'dirent.h': No such...
0
by: UJ | last post by:
I am trying to write a routine to upload a file through a web service to our server. I've enclosed the following code and when I run it I get an error: Exception Occurred. Error: Logon failure:...
9
by: Martin | last post by:
Using ODBC in a PHP script, I'm trying to read an MS Access MDB file that resides on another computer on my LAN. I'm getting the error: Warning: odbc_connect() : SQL error: The Microsoft Jet...
8
by: jyaseen | last post by:
I used the follwing code to download the text file from my server location. my php file to read the following code name is contacts.php it is downloading the text file but , this text file...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.