public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: L A Walsh <cygwin@tlinx.org>
To: cygwin@cygwin.com, "Vesa P." <938v14p33@gmail.com>
Subject: Re: Problems with "Hello, World!"
Date: Wed, 20 Mar 2019 03:15:00 -0000	[thread overview]
Message-ID: <5C91B051.8080905@tlinx.org> (raw)
In-Reply-To: <CAF0NPdi=FBVvQD4BNV9ThXcB1CoF31AZeKVKR27X4PeJq43U6w@mail.gmail.com>

On 3/19/2019 2:31 PM, Vesa P. wrote:
>
> Compiling my Hello World application didn't complain but when running
> it I didn't get any output. My compilation command was like this:
>    gcc -Wextra -Wall -o hello hello.c
> And my source code is below between "---" markers:
> ----------------------------------
> #include <stdio.h>
>
> int main() {
>   printf("Hello, World!\n");
>   return 0;
> }
> ----------------------------------
>   
----
    Well that is weird.  I just tried it on my Win7 and it works
as expected. 

    What directory are you running it in?  Could permissions be involved?

    Also what window are you running in?  I doubt it should be the case, but
some windows programs won't generate output in a cygwin shell or a
cygwin tty,
but will in cmd.e

    Have you tried running with 'strace' to see what calls it executes?:

strace -f ./hello

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

  parent reply	other threads:[~2019-03-20  3:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-19 21:31 Vesa P.
2019-03-19 22:14 ` Thomas Wolff
2019-03-20  3:15 ` L A Walsh [this message]
2019-03-20  3:33 ` Brian Inglis
2019-03-22 14:25   ` Vesa P.
2019-03-22 18:58     ` Achim Gratz
2019-03-23  8:17     ` Houder
2019-03-23  8:33       ` Houder
2019-03-23  8:52         ` Houder
2019-03-25 13:35         ` Vesa P.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5C91B051.8080905@tlinx.org \
    --to=cygwin@tlinx.org \
    --cc=938v14p33@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).