From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78760 invoked by alias); 25 Jun 2017 06:23:01 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 77875 invoked by uid 89); 25 Jun 2017 06:22:12 -0000 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 Received: from Unknown (HELO blaine.gmane.org) (195.159.176.226) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 25 Jun 2017 06:22:12 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dP0vr-0007vi-6t for cygwin@cygwin.com; Sun, 25 Jun 2017 08:22:03 +0200 To: cygwin@cygwin.com From: =?UTF-8?Q?Ren=c3=a9_Berber?= Subject: Re: Compiled programs fail to run from Cygwin Terminal, but work from windows cmd Date: Sun, 25 Jun 2017 06:23:00 -0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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: X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00313.txt.bz2 On 6/25/2017 1:14 AM, Wouter van Doorn wrote: > The tools are the original ones, as shown below: > User@User-PC ~/c_dir > $ ./hello.exe > > User@User-PC ~/c_dir > $ type make > make is hashed (/usr/bin/make) > > User@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