delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/09/11:03:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: eos.vss.fsi.com: ford owned process doing -bs
Date: Tue, 9 Dec 2003 10:01:33 -0600 (CST)
From: Brian Ford <ford AT vss DOT fsi DOT com>
X-X-Sender: ford AT eos
To: Matt Junkemail <mattsjunkemail AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Problem with compiling
In-Reply-To: <20031209071233.38792.qmail@web41312.mail.yahoo.com>
Message-ID: <Pine.GSO.4.58.0312090939020.28297@eos>
References: <20031209071233 DOT 38792 DOT qmail AT web41312 DOT mail DOT yahoo DOT com>
MIME-Version: 1.0

Please take a look at http://www.cygwin.com/problems.html.

There you will find helpful tips about how to compose a good problem
report, along with a list of the required information about your
environment that you need to attach.

On Mon, 8 Dec 2003, Matt Junkemail wrote:

> I can't seem to get gcc to compile my simple file.
>
> [I am new at cygwin and gcc, being a Windows and
> Visual C++ refugee. Forgive my ignorance.]
>
> I did the web install of Cygwin and picked out all the
> developer packages.  I have gcc.exe in /bin.
>
> I also have mingw installed.
>
I don't exactly know what you meant by this.  But, if all you want to do
is compile for mingw, then use "gcc/g++/etc. -mno-cygwin" with the
corresponding gcc-mingw[-*] Cygwin packages installed.

> When I try to compile a simple hello.cpp within the
> /bin directory with:
>
> gcc -c hello.cpp
>
I would recommend using g++ for .cpp files, but gcc should work too.

> I get the following error:
>
> gcc: installation problem, cannot exec 'cc1plus': No
> such file or directory
>
> If I search for cc1plus*, I find two exe's in
> ./lib/gcc-lib/i686-pc-mingw32/3.3.1
> ./use/lib/gcc-lib/i686-pc-mingw32/3.3.1
>
These are the same.  See:

http://cygwin.com/faq/faq_toc.html#TOC61

> I am assuming that I don't have the path variable set
> correctly?
>
No.

You are probably missing the non-mingw (ie. Cygwin) gcc packages.
Including the information requested in the problem report URL above would
confirm that.

Try using the Cygwin setup program again, and make sure you have
everythig applicable in the following selected:

gcc                     3.3.1-3            OK
gcc-ada                 3.3.1-3            OK
gcc-g++                 3.3.1-3            OK
gcc-g77                 3.3.1-3            OK
gcc-gpc                 3.3.1-3            OK
gcc-java                3.3.1-3            OK
gcc-mingw               20030911-4         OK
gcc-mingw-ada           20031020-1         OK
gcc-mingw-core          20031020-1         OK
gcc-mingw-g++           20031020-1         OK
gcc-mingw-g77           20031020-1         OK
gcc-mingw-gpc           20031020-1         OK
gcc-mingw-java          20031020-1         OK
gcc-mingw-objc          20031020-1         OK
gcc-objc                3.3.1-3            OK

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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