X-Recipient: archive-cygwin@delorie.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:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=ACpivVEFbljJ+3NwtVcvdEYx8Pft3/EyKQNN/aXrCzk
	HzqNkL4/4yRCUEIxj3eTMtg+Xtmjq8Zp9td8UlPEZumJsKh/qJ6dk2ydIVvRh4t/
	Lo9keLLbJ2fni1vOchZC74VEL+MmG3Z7hd4DmEX9IiAml2DqwfWUqntCvICzuu34
	=
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:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:content-type:content-transfer-encoding;
	 s=default; bh=pmCGFKKmX0nfyPWYFPZLyBtarqE=; b=sJuG4vA1fDlr/7gDo
	c55hneYkFVURL+nUzVPcrhMjd7LiBuYttJ/KppTotPVXvVnzMvGHvNWBJ6Z5nRtc
	bK4omTYd+WAX9eLBkrA90+v+Jgb/pJhTS3+8429WWHEsaBvOdwwGx1iK5eaaBxlF
	uGeoiTbE2DzN3llH0sQ5nNMRCk=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=shed
X-HELO: mail-io0-f171.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:mime-version:sender:in-reply-to:references:from         :date:message-id:subject:to:content-transfer-encoding;        bh=dG48vvaKxeJPavPQbZB4KxiruFdBhyacaBMt6TsnHx8=;        b=X8uzN31ydgcWwr4+kG4cUXjqvs+1NL26SpbOOJRO7yZLr8QOleBkO0rHM6nz+lSTfn         rALCVc2sYYCOWNGJppJR0DS8t37PJTDSkVxHiREDvwZOH/hLzBre6b4TA6fkcTAk2HqP         9jbmEE9kPMQiGEBdX1BsAEX/Q/hq6sE5OQmvTti0BghLw3kx+e2CdTf/T2qkA8KuVxl1         EECfDGTSZg3W72Qfds4A1RfsyJG4EpVPRdQGtPTHxu/LqZoaM0jBPOvUbNqh2GZXwOJN         PvjYZLlMS8YOS++uVHzF2A7NTj2NuyYJ4fAyWgMA/jl0byQ5Tep0IPGarCkHQr7KJt5V         htlw==
X-Gm-Message-State: AKS2vOwxUPnrE+8sJEkVl6TkoyImebieqGtgOkskypXuphVOShvCPtA+	kYSZuaSx8Xi9hRwxPQ5CGOOsg8qbKg==
X-Received: by 10.107.173.221 with SMTP id m90mr3374884ioo.152.1498147219478; Thu, 22 Jun 2017 09:00:19 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <oigj20$2ot$1@blaine.gmane.org>
References: <CANZ2p_ckjzWEp0uPoJ8MAXh=0B6ZhWQVt9v_NmsFP-fpoX-sEg@mail.gmail.com> <oiepk2$78o$1@blaine.gmane.org> <CANZ2p_cpjbjvZfOgSKAmsCT92QHC1i-yPc2BosJgL6u4LCdypQ@mail.gmail.com> <oigj20$2ot$1@blaine.gmane.org>
From: Wouter van Doorn <wouter@vandoorn.tv>
Date: Thu, 22 Jun 2017 16:59:59 +0100
Message-ID: <CANZ2p_dgYfAemU55ssSUkJdnX4ALEAFcWtw+h9R_vM4Z-VYzaw@mail.gmail.com>
Subject: Re: Compiled programs fail to run from Cygwin Terminal, but work from windows cmd
To: cygwin@cygwin.com
Content-Type: text/plain; charset="UTF-8"
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v5MG1JSr015575

With 'outside', I meant a normal run not involving gdb at all. Sorry
if I was unclear.

Yes, it's minty, and it's /bin/bash.

Out of desperation, I have added a sleep for two seconds both before
and after the printf statement. The sleep does not happen either! The
prompt is immediately back, so it's more than just 'no output', it
seems my code never even gets started. Does this shed any new light?

On 22 June 2017 at 15:08, René Berber <rene.berber@gmail.com> wrote:
> On 6/22/2017 8:13 AM, Wouter van Doorn wrote:
>
> [snip]
>> STOP PRESS: in gdb, the output IS there:
>> User-PC-> gdb hello.exe
>> GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1
> ...
>> Reading symbols from hello.exe...done.
>> (gdb) run
>> Starting program: /home/User/c_dir/hello.exe
>> [New Thread 6868.0x5b0]
>> [New Thread 6868.0x18dc]
>> [New Thread 6868.0x1990]
>> Hello, world!
>> [Thread 6868.0x1990 exited with code 0]
>> [Inferior 1 (process 6868) exited normally]
>> (gdb)
>>
>> Which is dandy, but then why, outside of gdb, is there nothing at all?
>
> What is "outside"?
>
> Are you running this from mintty (recommended) or the Cygwin.bat cmd window?
>
> Which shell? (i.e. echo $SHELL)
> --
> 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
>

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


