From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25659 invoked by alias); 22 Jun 2017 16:01:04 -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 24560 invoked by uid 89); 22 Jun 2017 16:00:29 -0000 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 Received: from mail-io0-f171.google.com (HELO mail-io0-f171.google.com) (209.85.223.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 22 Jun 2017 16:00:22 +0000 Received: by mail-io0-f171.google.com with SMTP id e63so16780984iod.3 for ; Thu, 22 Jun 2017 09:00:22 -0700 (PDT) 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 Received: by 10.36.2.14 with HTTP; Thu, 22 Jun 2017 08:59:59 -0700 (PDT) In-Reply-To: References: From: Wouter van Doorn Date: Thu, 22 Jun 2017 16:01:00 -0000 Message-ID: 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" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00269.txt.bz2 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=C3=A9 Berber 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 wind= ow? > > 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