From: "Max Bowsher" <maxb@ukf.net>
To: "Milos Puzovic" <mp1102@doc.ic.ac.uk>, <cygwin@cygwin.com>
Subject: Re: problem with runningsimple C program
Date: Wed, 25 Jun 2003 21:45:00 -0000 [thread overview]
Message-ID: <001701c33b4f$f0cfc7f0$557c883e@pomello> (raw)
In-Reply-To: <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/
next prev parent reply other threads:[~2003-06-25 21:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-25 21:40 Milos Puzovic
2003-06-25 21:42 ` Hannu E K Nevalainen (garbage mail)
2003-06-25 21:45 ` Max Bowsher [this message]
2003-06-26 0:57 ` Milos Puzovic
2003-06-26 4:34 ` VSong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001701c33b4f$f0cfc7f0$557c883e@pomello' \
--to=maxb@ukf.net \
--cc=cygwin@cygwin.com \
--cc=mp1102@doc.ic.ac.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).