This is the mail archive of the
mailing list for the Cygwin project.
Re: Compiled programs fail to run from Cygwin Terminal, but work from windows cmd
- From: Wouter van Doorn <wouter at vandoorn dot tv>
- To: cygwin at cygwin dot com
- Date: Thu, 22 Jun 2017 16:59:59 +0100
- Subject: Re: Compiled programs fail to run from Cygwin Terminal, but work from windows cmd
- Authentication-results: sourceware.org; auth=none
- References: <CANZ2p_ckjzWEp0uPoJ8MAXh=0B6ZhWQVt9v_NmsFP-fpoX-sEg@mail.gmail.com> <email@example.com> <CANZ2p_cpjbjvZfOgSKAmsCT92QHC1i-yPc2BosJgL6u4LCdypQ@mail.gmail.com> <firstname.lastname@example.org>
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 <email@example.com> wrote:
> On 6/22/2017 8:13 AM, Wouter van Doorn wrote:
>> 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]
>> 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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple