Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 6 Mar 2003 14:01:57 +0100 (MET) From: Klaus DOT Moschner AT gmx DOT de To: cygwin AT cygwin DOT com MIME-Version: 1.0 References: <28460 DOT 1046953964 AT www42 DOT gmx DOT net> Subject: gcc Core Dump X-Priority: 3 (Normal) X-Authenticated-Sender: #0001000612 AT gmx DOT net X-Authenticated-IP: [217.33.215.170] Message-ID: <730.1046955717@www42.gmx.net> X-Flags: 0001 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit 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 #include /* 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/