delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/09/19:46:02

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: Dario Alcocer <alcocer AT helixdigital DOT com>
MIME-Version: 1.0
Message-ID: <15097.54951.265286.836069@coyote.priv.helixdigital.com>
Date: Wed, 9 May 2001 16:45:43 -0700
To: "Quoss, Clemens" <Clemens DOT Quoss AT Dresdner-Bank DOT com>
Cc: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: No output on stdout
In-Reply-To: <9FD1B9BA394ED31181EC0008C7A4FFD202904D46@ffz00zaj.wwz1me.mail.dresdner.net>
References: <9FD1B9BA394ED31181EC0008C7A4FFD202904D46 AT ffz00zaj DOT wwz1me DOT mail DOT dresdner DOT net>
X-Mailer: VM 6.76 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid

>>>>> "Clemens" == Quoss, Clemens <Clemens DOT Quoss AT Dresdner-Bank DOT com> writes:

    Clemens> Hello, when I compile a very simple C program like the
    Clemens> one below with gcc under Cygwin and then run it in bash,
    Clemens> I don't get an output on the console window.

    Clemens> When I run the same executable under a DOS Shell in
    Clemens> Windows NT or 98, I get the 'Hello, Cygwin!' line.

    Clemens> Is there anything I overlooked on setup (I did set CYGWIN
    Clemens> to 'tty notitle glob' like mentioned in the User's
    Clemens> guide)?  Anything else that prevents the stdout to be
    Clemens> shown on console?

Hmm, you didn't by any chance call the program 'test'?  If so, you may
be running the bash shell built-in command 'test':

    $ type test
    test is a shell builtin

If that's the case, it would make sense that only the DOS command
window would run it, since COMMAND.COM doesn't have any built-in
command called 'test', and so it would next look for files named
test.com, test.exe, etc. in order to execute the command.

Try the following in a bash shell to see if your test program works:

    $ gcc -o mytest mytest.c
    $ ./mytest
    Hello, Cyqwin!
    $

-- 
Dario Alcocer -- Sr. Software Developer, Helix Digital Inc.
alcocer AT helixdigital DOT com -- http://www.helixdigital.com

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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