This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: problem with runningsimple C program
- From: "Max Bowsher" <maxb at ukf dot net>
- To: "Milos Puzovic" <mp1102 at doc dot ic dot ac dot uk>,<cygwin at cygwin dot com>
- Date: Wed, 25 Jun 2003 20:28:20 +0100
- Subject: Re: problem with runningsimple C program
- References: <3EF9DEB5.1040601@doc.ic.ac.uk>
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/