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: <3EF9DEB5.1040601@doc.ic.ac.uk> Date: Wed, 25 Jun 2003 18:41:09 +0100 From: Milos Puzovic User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: problem with runningsimple C program Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/