From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30986 invoked by alias); 25 Jun 2003 21:42:06 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 5536 invoked from network); 25 Jun 2003 20:40:23 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by sources.redhat.com with SMTP; 25 Jun 2003 20:40:23 -0000 Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19VH3k-0002jg-00 for ; Wed, 25 Jun 2003 22:40:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: cygwin@cygwin.com Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19VGuk-0001vJ-00 for ; Wed, 25 Jun 2003 22:30:46 +0200 From: "VSong" Subject: Re: problem with runningsimple C program Date: Thu, 26 Jun 2003 04:34:00 -0000 Message-ID: References: <3EF9DEB5.1040601@doc.ic.ac.uk> X-Complaints-To: usenet@main.gmane.org X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-SW-Source: 2003-06/txt/msg01193.txt.bz2 I tried it and it worked fine for me. "Milos Puzovic" wrote in message news:3EF9DEB5.1040601@doc.ic.ac.uk... > I was trying to run the following simple C code: > > void func(); > > main() { > func(); > } > > void func() { printf("Hello world from func()!"); } > > First, I compiled it with gcc program.c -o program. Then I tried to run > it, but I got "Segmentation fault (core dumped)" message. > > The version of gcc is 3.2 20020927 (prerelease). > > Best wishes, > Milos. > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/