This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

problem with runningsimple C program


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]