www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/11/00:02:13

Mime-Version: 1.0
To: Greg Phillips <nfn03592 AT gator DOT naples DOT net>, djgpp AT delorie DOT com
From: Nate Eldredge <nate AT cartsys DOT com>
Subject: Re: Compile errors...
Date: Sun, 10 May 1998 20:54:34 -0700
Message-ID: <19980511035425.AAD4598@ppp107.cartsys.com>

At 08:56  5/10/1998 -0400, Greg Phillips wrote:
>When I compile a small program I am working on, I get the following error...
>
>Error: test.o: In function `main':
>test.cpp(3) Error: undefined reference to `__eh_pc'
>Error: test.cpp(.text+0x88): undefined reference to `__throw'
>Error: test.cpp(.text+0x95): undefined reference to `terminate(void)'
>
>Any idea what could cause an error like this?  This does not seem like a
>standard kind of error, as it occurs during the linking after the object
>files compile (without errors, in fact).

How do you link? If you don't use `gpp' or equivalent in place of `gcc', the
C++ libraries will not get linked and you'll get this kind of error.
(Depending on your DJGPP version and OS, `gxx' or `g++' may be appropriate
instead; the functionality is the same.)

Nate Eldredge
nate AT cartsys DOT com



- Raw text -


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