Re: problem with runningsimple C program

2003-06-25 Thread VSong
I tried it and it worked fine for me. "Milos Puzovic" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 wi

Re: problem with runningsimple C program

2003-06-25 Thread Milos Puzovic
Max Bowsher wrote: Works for me. Have you oversimplified this example? Strange! I have just reinstalled whole cygwin, compiled the code and it was working. Still don't know what was the problem. Milos. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: ht

Re: problem with runningsimple C program

2003-06-25 Thread Max Bowsher
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

RE: problem with runningsimple C program

2003-06-25 Thread Hannu E K Nevalainen \(garbage mail\)
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf > Of Milos Puzovic > > > 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

problem with runningsimple C program

2003-06-25 Thread Milos Puzovic
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 2