delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/01/25/12:15:43

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: gcc: installation problem, cannot exec `cc1plus': Invalid argument
Date: 25 Jan 2006 17:04:30 GMT
Lines: 28
Message-ID: <43ppcuF1on7sfU2@news.dfncis.de>
References: <20060125145515 DOT 60527 DOT qmail AT web51001 DOT mail DOT yahoo DOT com>
X-Trace: news.dfncis.de gkLGkkgFi1kLdBsrnBQQcwO+l18a2okyksgcXr74KKN6ccWlDNZC1tMtVc
X-Orig-Path: not-for-mail
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Rafael Morales Castro <nabucodonosor78 AT yahoo DOT com> wrote:

> I install djgpp on winXP and want to compile a program using

> gcc -g -Ic:\djgpp\include -c myzip.cpp -o myzip.exe

That command line is blatantly wrong on one count, and questionable on
another:

*) options "-c" and "-o myzip.exe" contradict each other.  If you
   want an executable, you must not use -c.
*) -Ic:\djgpp\include is, or at least it *should* be, completely
   superfluous.  Get rid of it.

> gcc: installation problem, cannot exec `cc1plus': Invalid argument

You don't supply enough details for anybody to be sure what went wrong
here.  The most likely reasons would be

1) you forgot to actually install the C++ compiler
2) you didn't read the README, causing you to unzip stuff 
   in the wrong way
3) you didn't read the README, causing you to install in a 
   badly chosen place.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019