Date: Mon, 16 Mar 1998 17:57:55 -0800 (PST) Message-Id: <199803170157.RAA24210@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Jens DOT Lehmann AT post DOT rwth-aachen DOT de (Jens Lehmann), djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: SIGSEGV with "Hello World" Precedence: bulk At 09:42 3/16/1998 GMT, 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): > >#include >int main() >{ > cout << "Hello World\n"; > return (0); >} > > >typed "make hello" and everything seemed fine until i wanted to >execute my program: Where did you get the makefile? > > >C:\Tmp>make hello >gcc hello.cc -o hello When linking C++, you should use `gxx' instead of `gcc'. README.1ST explains this. > >C:\Tmp>hello >Exiting due to signal SIGSEGV >General Protection Fault at eip=0000003e You aren't by any chance using RSXNT, are you? I've heard that unresolved symbols cause crashes with it. Are you sure there are no other programs called `gcc', `cpp', `cc1plus', `as', or `ld' on your path? Nate Eldredge eldredge AT ap DOT net