delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/09/08:26:29

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
Message-Id: <9FD1B9BA394ED31181EC0008C7A4FFD202904D48@ffz00zaj.wwz1me.mail.dresdner.net>
From: "Quoss, Clemens" <Clemens DOT Quoss AT Dresdner-Bank DOT com>
To: "'Robinow, David'" <drobinow AT dayton DOT adroit DOT com>
Cc: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: AW: No output on stdout
Date: Wed, 9 May 2001 14:25:40 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id IAA08059

Hallo David,

thanks a lot. Out of a habit,
I always call my programs 'test'.
So - thats the problem!

I tried 'type test'.
-> test is a shell builtin (OK!)

I tried 'type test.exe'
-> test.exe is hashed (/usr/bin/test.exe) (OK!)

I ran ./test.exe
Now he's picking my program and I get my long 
awaited for output!

Again, thanks a lot, David!

Bye

Clemens

P.S. I think I should switch to calling my test
programs cqtest.c in the future.

-----Ursprüngliche Nachricht-----
Von: Robinow, David [mailto:drobinow AT dayton DOT adroit DOT com]
Gesendet am: Mittwoch, 9. Mai 2001 14:05
An: 'Quoss, Clemens'
Betreff: RE: No output on stdout

You don't say how you compiled your program. You didn't call it "test" did
you?
 Assuming you named it "abc", type
    type abc
 in a bash window and see if there's another abc executable in your path.
try   ./abc to make sure your running the right executable.

> -----Original Message-----
> From: Quoss, Clemens [mailto:Clemens DOT Quoss AT Dresdner-Bank DOT com]
> Sent: Wednesday, May 09, 2001 4:04 AM
> To: 'cygwin AT cygwin DOT com'
> Subject: No output on stdout
> 
> 
> Hello,
> 
> when I compile a very simple C program like the one below with gcc
> under Cygwin and then run it in bash, I don't get an output on the
> console window.
> 
> When I run the same executable under a DOS Shell in Windows
> NT or 98, I get the 'Hello, Cygwin!' line.
> 
> Is there anything I overlooked on setup (I did set CYGWIN
> to 'tty notitle glob' like mentioned in the User's guide)?
> Anything else that prevents the stdout to be shown 
> on console?
> 
> TIA
> 
> Bye
> 
> Clemens Quoss
> 
> The C program:
> 
> #include <stdio.h>
> #include <stdlib.h>
> 
> int main(void) {
> 
>   printf("Hello, Cyqwin!\n");
>   return 0;
> 
> } // main

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