Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <001701c33b4f$f0cfc7f0$557c883e@pomello> From: "Max Bowsher" To: "Milos Puzovic" , References: <3EF9DEB5 DOT 1040601 AT doc DOT ic DOT ac DOT uk> Subject: Re: problem with runningsimple C program Date: Wed, 25 Jun 2003 20:28:20 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Milos Puzovic wrote: > 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). Works for me. Have you oversimplified this example? Max. -- 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/