| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <49AB8757.90807@gmail.com> |
| Date: | Mon, 02 Mar 2009 07:14:31 +0000 |
| From: | Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com> |
| User-Agent: | Thunderbird 2.0.0.17 (Windows/20080914) |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: side effects after installing gcc-3.4.4.999 |
| References: | <gofr4i$s1t$1 AT ger DOT gmane DOT org> |
| In-Reply-To: | <gofr4i$s1t$1@ger.gmane.org> |
| 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 |
Akakima wrote:
> After updating gcc in my cygwin installation, i discovered
> that i cannot run gcc.exe from the native winxp console (cmd.exe).
>
> gcc.exe has been replaced by gcc-3.exe.
And by a link.
> Of course, this works fine under bash and ash, but it does not work anymore
> under cmd.exe.
Nope, of course not. Use "gcc-3.exe" instead.
> since i prefer to work under cmd.exe. i tried to fix this problem by:
> adding .LNK to PATHEXT
> and adding /usr/bin/alternatives to the PATH
You mean /etc/alternatives, I think.
> and now if i type "gcc", cmd finds gcc-3.exe and launch it.
That didn't work when I tried it:
C:\cygwin\etc\alternatives>gcc
Access is denied.
C:\cygwin\etc\alternatives>gcc.lnk
Access is denied.
C:\cygwin\etc\alternatives>
> But, this is not perfect. gcc (or someone else) wait until i press
> enter to continue.
GCC doesn't do that sort of thing. What actual command do you type, and
what symptom do you get? What program is running if you check with "ps -a" in
another window while this possible wait-to-press-enter is occurring? Does GCC
go ahead and generate a compiled output after you press enter?
The problem arises because you insist on two things: 1) you want to use
cmd.exe, 2) you want to start a program without typing the name it's actually
called. Since cmd.exe doesn't understand links, your two requirements are
mutually contradictory. The best solution is to downgrade, or to copy
gcc-3.exe to gcc.exe and get rid of the link stuff altogether.
cheers,
DaveK
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |