delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/25/17:57:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: "VSong" <Song AT SelkirkFinancial DOT com>
Subject: Re: problem with runningsimple C program
Date: Wed, 25 Jun 2003 13:31:02 -0700
Lines: 25
Message-ID: <bdd0pl$770$1@main.gmane.org>
References: <3EF9DEB5 DOT 1040601 AT doc DOT ic DOT ac DOT uk>
X-Complaints-To: usenet AT main DOT gmane DOT org
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

I tried it and it worked fine for me.

"Milos Puzovic" <mp1102 AT doc DOT ic DOT ac DOT uk> wrote in message
news:3EF9DEB5 DOT 1040601 AT doc DOT ic DOT ac DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019