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: References: <4A221A61 DOT 2050207 AT cygwin DOT com> <17393e3e0905310011i3b6bd318ud323d64a9fe3581b AT mail DOT gmail DOT com> 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 To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/