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: 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 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: From: Brian Inglis Message-ID: 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: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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%\;%ProgramFiles%\\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