From: Jens DOT Lehmann AT post DOT rwth-aachen DOT de (Jens Lehmann) Newsgroups: comp.os.msdos.djgpp Subject: SIGSEGV with "Hello World" Date: Mon, 16 Mar 1998 21:42:18 GMT Organization: Aachen University of Technology / Rechnerbetrieb Informatik Lines: 51 Message-ID: <350d9cb7.29045071@news.rwth-aachen.de> NNTP-Posting-Host: s2m039.dialup.rwth-aachen.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi! I would like to learn C and have some trouble with compiling: I wrote my first little C-code (you know it all): #include int main() { cout << "Hello World\n"; return (0); } typed "make hello" and everything seemed fine until i wanted to execute my program: C:\Tmp>make hello gcc hello.cc -o hello C:\Tmp>hello Exiting due to signal SIGSEGV General Protection Fault at eip=0000003e eax=fd1b38a6 ebx=0004c2c0 ecx=00000000 edx=00000000 esi=00000054 edi=0000a2d4 ebp=0004a298 esp=0004a274 program=C:\TMP\HELLO.EXE cs: sel=00af base=84107000 limit=0005ffff ds: sel=00b7 base=84107000 limit=0005ffff es: sel=00b7 base=84107000 limit=0005ffff fs: sel=0087 base=000101b0 limit=0000ffff gs: sel=00c7 base=00000000 limit=ffffffff ss: sel=00b7 base=84107000 limit=0005ffff Call frame traceback EIPs: 0x0000003e 0x00001577 0x00001ada C:\Tmp> What am I doing wrong? I have read the FAQ and found some hints but they don't help me (stack size to small, bug in version 2.0). Do I need a makefile? System: Windows95 OSR2 (German), GNU CPP version 2.7.2.1 (80386, BSD syntax), GNU Make version 3.76.1 Regards, Jens (C-newbie) ;-)