From: Jason Dagit Newsgroups: comp.os.msdos.djgpp Subject: Re: SIGSEGV with "Hello World" Date: Mon, 16 Mar 1998 19:58:51 -0800 Organization: Dagit Enterprises Lines: 23 Message-ID: <350DF4FB.230E00B7@mail.coos.or.us> References: <350d9cb7 DOT 29045071 AT news DOT rwth-aachen DOT de> Reply-To: thedagit AT mail DOT coos DOT or DOT us NNTP-Posting-Host: coosbay1-99.transport.com 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 Did you realize your program isn't C it is C++? That might make a small difference. For example, my configuration won't compile C++ unless I tell it that it is C++ (using g++ or gpp or gxx instead of gcc, you can also do gcc if you do -lstdcxx at the end of the line). Hope that helps. Jason Jens Lehmann wrote: > > Hi! > > I would like to learn C and have some trouble with compiling: I wrote > my first little C-code (you know it all): > > 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) ;-)