delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/28/10:01:34

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_40,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Mon, 28 Jun 2010 10:01:18 -0400
Message-ID: <AANLkTinIWGr-rx-ePLrKRZfyAqCT3kwqrQZK6uyJKieq@mail.gmail.com>
Subject: Re: Looking for gcc.exe
From: Stephen Morton <stephen DOT c DOT morton AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

"Sisyphus" <sisyphus1 at optusnet ...> Wrote:
> I've just installed a fresh "CYGWIN_NT-6.0-WOW64 desktop2
> 1.7.5(0.225/5/3) 2010-04-12 19:07 i686 Cygwin", including gcc-4
> (4.3.4-3).
>
> According to http://cygwin.com/packages/ there should be an executable
> named gcc.exe in there - but I see only gcc-4.exe. As a quick fix I've
> created a copy of gcc-4.exe named gcc.exe, and I expect that will work
> ok. (I've also done the same wrt cpp-4.exe, g++-4.exe and gcov-4.exe.)
> Is that what we're supposed to do ? ... or did I miss something ?
>

You need to add /etc/alternatives to your path.

I scrambled to find a solution to this one for a while too.
/ect/alternatives has softlinks to either gcc-4.exe
or gcc-3.exe so it allows you to easily switch between the two.

This can create problems though, if your build environment has
some pure windows programs that need to call the compiler
and don't understand about softlinks so YMMV.

Steve

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

- Raw text -


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