X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=btuf8hNzFUCzBwQlOhY+WPwOLZO3FNJII+pydyZN46u asqH7tYt2yXDosRONXzBJ1AFTNcQNdZo1CjC9AjILFuObOpfE+HMpJ4/J0pErRH7 hpuZkxFawvJ11Fg3YaD6HnBx1XBD2gyYhIBNhw5KA2q5IhrreOkqWUgI4Fndw514 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=izKgdUZRTEtolM+iYeJnOkFW6A0=; b=SMy6TKVy9pQxECkxn HX/Fg2yCRy2I7q4WFoKQrgXdhx5SmCaOZ/iZnvZKEcec3e0h7GVv2t7HhpbZQ6A5 N+qmIHUT0DbVUvabSDzpmyznqvKCcBv2Sn0jDNJS4/A4Oug5dHk0wtKqBC1UWma6 7D9Tgn85YLaY4BEDEGlcT8akCc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2 autolearn=ham version=3.3.1 spammy=H*r:8.14.4, strace, H*r:192.168.3 X-HELO: Ishtar.sc.tlinx.org Message-ID: <5C91B051.8080905@tlinx.org> Date: Tue, 19 Mar 2019 20:15:29 -0700 From: L A Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: cygwin AT cygwin DOT com, "Vesa P." <938v14p33 AT gmail DOT com> Subject: Re: Problems with "Hello, World!" References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 > > 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