gcc Core Dump
Klaus.Moschner@gmx.de
Klaus.Moschner@gmx.de
Thu Mar 6 13:05:00 GMT 2003
Hi,
I'm a newbie in programming under Cygwin, and I have a very basic problem
with gcc:
Any help is appreciated.
This code compiles and runs without any problems under Dev++
This is the output when I compile and run:
$ gcc -Wall prog3.c -o prog3
$ ./prog3.exe
Hello World
Segmentation fault (core dumped)
$
This is the source code:
/* Include Files */
#include <stdio.h>
#include <stdlib.h>
/* Function Declarations */
void PrintHW();
int main()
{
char quit;
printf("Hello World\n");
PrintHW(); /* Prints Hello Function */
printf("Hello World\n");
quit = '\0';
return 0;
}
void PrintHW()
{
printf("Hello Function\n");
}
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list