delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/31/04:56:52

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <loom.20090531T074353-357@post.gmane.org>
References: <loom DOT 20090531T045341-42 AT post DOT gmane DOT org> <4A221A61 DOT 2050207 AT cygwin DOT com> <17393e3e0905310011i3b6bd318ud323d64a9fe3581b AT mail DOT gmail DOT com> <loom DOT 20090531T074353-357 AT post DOT gmane DOT org>
Date: Sun, 31 May 2009 09:56:32 +0100
Message-ID: <416096c60905310156n523dd947xfb73bdd6acfac83f@mail.gmail.com>
Subject: Re: Win2k Command Window Can't Execute G++
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

2009/5/31 Roger Head:
> Thanks for the reply, Matt. I don't have a really good idea of how Cygwin and
> Windows are both supposed to be able to handle .LNKs to e.g. G++, but a dump of
> g++.exe.lnk shows strings for /etc/alternatives and L:\cygwin\etc\alternatives.
> So yes, I don't know if Windows is supposed to be able follow that

Unfortunately not. .lnk shortcuts are a Windows Explorer concept, and
not one that is the supported by the Windows kernel, hence cmd.exe
sees them as normal files.


> I'm almost certain that I was able to invoke it from a CMD window.

Afaik, gcc and g++ changed into links only recently, to help with the
transition from gcc-3.4 to 4.3.


> I'm sure that I can come up with a hack that will let me do what I want

The easiest thing to do would be to overwrite the link with the file
it points to, e.g. 'cp /bin/g++-4.exe /bin/g++.exe'. You'd have to
remember to do that after every gcc update though.

Andy

--
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