X-Recipient: archive-cygwin@delorie.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.20090531T045341-42@post.gmane.org> 	 <4A221A61.2050207@cygwin.com> 	 <17393e3e0905310011i3b6bd318ud323d64a9fe3581b@mail.gmail.com> 	 <loom.20090531T074353-357@post.gmane.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.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

