This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Problems with "Hello, World!"
- From: L A Walsh <cygwin at tlinx dot org>
- To: cygwin at cygwin dot com, "Vesa P." <938v14p33 at gmail dot com>
- Date: Tue, 19 Mar 2019 20:15:29 -0700
- Subject: Re: Problems with "Hello, World!"
- References: <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