problem with runningsimple C program
VSong
Song@SelkirkFinancial.com
Thu Jun 26 04:34:00 GMT 2003
I tried it and it worked fine for me.
"Milos Puzovic" <mp1102@doc.ic.ac.uk> wrote in message
news:3EF9DEB5.1040601@doc.ic.ac.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/
More information about the Cygwin
mailing list