delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/06/25/02:23:49

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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; q=dns; s=default; b=aJIGIQXrIbu03IVNkw+BdqIqPzIIxp
Yy5J63H1h3V3M5+rl4g2wcJPPV+PJZzkASKEAFqJafo27mFskTrbbMKXgN0mwqlh
aDnhF0RSoHSaCicALjeWgDTXzdIIDg+ueCGwjU6muYqNZBTGu9pzfs5cPrKq+Jp1
5vlT9WP+jMJn0=
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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; s=default; bh=D1qZ1wk2Y6Jm+woo1Ou4WyO0Qcw=; b=Ltrm
JEz7B1ecntlzeNF9uyxUGupDM9Mo8AyAX7c0XfJnCDqGAQjljmSZ2JrVorkTJkyh
oWh6MEI4ivfal6O/bEbsWMH0YJZBGlvU6d71TrR8EQjwK/bKPE4cn2f82ZPePNlH
wRWFl/F+VfhKIpYkTqLb0V9INz9V7vbVnPSz9lI=
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=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*UA:en-US, H*u:en-US, H*u:5.1, H*r:Unknown
X-HELO: blaine.gmane.org
To: cygwin AT cygwin DOT com
From: =?UTF-8?Q?Ren=c3=a9_Berber?= <rene DOT berber AT gmail DOT com>
Subject: Re: Compiled programs fail to run from Cygwin Terminal, but work from windows cmd
Date: Sun, 25 Jun 2017 01:22:01 -0500
Lines: 24
Message-ID: <oinkq5$sg7$1@blaine.gmane.org>
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>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0
In-Reply-To: <CANZ2p_dzMLRtNa_tjEHY+1-ee3vi7T1K0pFuuJpdKUuvs5hnCQ@mail.gmail.com>
X-IsSubscribed: yes

On 6/25/2017 1:14 AM, Wouter van Doorn wrote:

> The tools are the original ones, as shown below:
> User AT User-PC ~/c_dir
> $ ./hello.exe
> 
> User AT User-PC ~/c_dir
> $ type make
> make is hashed (/usr/bin/make)
> 
> User AT User-PC ~/c_dir
> $ type gcc
> gcc is /usr/bin/gcc

Try a simple:

$ gcc -o hello hello.c

$ ./hello

Take out make out of the equation, we don't know what the Makefile does
anyway (we haven't seen it).
-- 
R. Berber


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019