delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/17/01:53:52

Date: Mon, 16 Mar 1998 17:57:55 -0800 (PST)
Message-Id: <199803170157.RAA24210@adit.ap.net>
Mime-Version: 1.0
To: Jens DOT Lehmann AT post DOT rwth-aachen DOT de (Jens Lehmann), djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: SIGSEGV with "Hello World"

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 <iostream.h>
>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



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019