delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:reply-to:subject:to:references:from:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=H7lYoYjg4Vb+jQO4 | |
hOpp4/Z9ZX+jc+F9JdG4EM8ZeNufQdyo9LzAqdMSWB5oBnWp6usc6du+Fip+RWTZ | |
wdHZvB07Y/lF31eF3ZFbfP9W0kmfTC0DhOEG03m1nHa0ojMcUvXhrtU9rI3zKIUk | |
T3A7wzfAP2Wa+EVasP2PVPgNf0U= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:reply-to:subject:to:references:from:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=NSDl2qKEJzwLV/TTelxSKP | |
PjiXg=; b=yjKP8U+3pUA3EeCOvd5HS4XB8leXSUii5xI37z9NUiCsIUndtlsS06 | |
+aiqTCvyZnviBoHvGR/0IhpBwL57Ispn1+7Rz/XV3e8Jn5Jsipr1JC/50J8kc+9t | |
F8kWYnaPFlTNpKy16c9KzoGkj/vYn7mhK3qcKzOfJuxlVnqKfI24g= | |
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 |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-1.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy= |
X-HELO: | smtp-out-so.shaw.ca |
X-Authority-Analysis: | v=2.2 cv=F5wnTupN c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=4Zk6ZAQr-afzmrijNfcA:9 a=QEXdDO2ut3YA:10 |
Reply-To: | Brian DOT Inglis AT SystematicSw DOT ab DOT ca |
Subject: | Re: Compiled programs fail to run from Cygwin Terminal, but work from windows cmd |
To: | cygwin AT cygwin DOT com |
References: | <CANZ2p_ckjzWEp0uPoJ8MAXh=0B6ZhWQVt9v_NmsFP-fpoX-sEg AT mail DOT gmail DOT com> <oiepk2$78o$1 AT blaine DOT gmane DOT org> <CANZ2p_cpjbjvZfOgSKAmsCT92QHC1i-yPc2BosJgL6u4LCdypQ AT mail DOT gmail DOT com> <b86cab58-8c03-11d6-c72a-357212678c39 AT towo DOT net> <CANZ2p_dzMLRtNa_tjEHY+1-ee3vi7T1K0pFuuJpdKUuvs5hnCQ AT mail DOT gmail DOT com> <oinkq5$sg7$1 AT blaine DOT gmane DOT org> <CANZ2p_cA8mGYJHGUudxig_GTGrcrUB_AvD22wycMLD+pVQL02A AT mail DOT gmail DOT com> |
From: | Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
Message-ID: | <d5e776ca-e63d-868e-cd0e-19fb28a236dd@SystematicSw.ab.ca> |
Date: | Sun, 25 Jun 2017 10:04:28 -0600 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 |
MIME-Version: | 1.0 |
In-Reply-To: | <CANZ2p_cA8mGYJHGUudxig_GTGrcrUB_AvD22wycMLD+pVQL02A@mail.gmail.com> |
X-CMAE-Envelope: | MS4wfHIa/G3+777g9AUUPsPHlvyqCZgABa2kk9HkhPlXerOLL8oNtFYHkxgpmZvP3wJz3cU096fM//UheqEOKPBeMWy/lut+NUbJa1MBeDgZMuGHD3NNBedj +6rUChsrIgfzAPJ0N5Qliz6ZFoII/27m2zE2X/+QuNK8Cc0dwwgk9VWyFwROEk3pZHE1URqpI6R+/A== |
X-IsSubscribed: | yes |
On 2017-06-25 00:31, Wouter van Doorn wrote: > There isn't one! The default rule does exactly that (although despite > the -o it creates a hello.exe, but that's fine. It doesn't seem to be fine - is that not what you're complaining about? Given your PATH, we don't know which make might be running, which rules it might be using, and which programs might be producing your hello.exe which doesn't run, running a simple "gcc -o hello hello.c" may give you some certainty and possibly success. In general, your Cygwin profile should prefix your Windows user PATH with e.g. PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin:%PATH% - append /usr/sbin;/sbin; before %PATH% to also run admin utilities. Also your Windows user PATH should prefix your Windows system Path with utility paths you installed and use logged on e.g. PATH -> C:\Cygwin\usr\local\bin;C:\Cygwin\bin;%ProgramFiles%\<utility>;%ProgramFiles%\<other>\bin;...%Path% Your Windows system Path should be prefixed with utility paths you may want to run logged out or under other ids e.g. Path -> ... -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |