www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/27/03:48:52

Date: Tue, 27 Feb 1996 10:37:07 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jerry Lee <wg491 AT freenet DOT Victoria DOT BC DOT CA>
Cc: djgpp AT delorie DOT com
Subject: Re: problem linking C++ program with C++ exception
In-Reply-To: <1996Feb25.235243.12623@freenet.victoria.bc.ca>
Message-Id: <Pine.SUN.3.91.960227103124.9161A-100000@is>
Mime-Version: 1.0

On Sun, 25 Feb 1996, Jerry Lee wrote:

> Do anybody have trouble linking C++ program that uses the C++ exception 
> mechanism? The following program won't link and the linker produces the
> theses error messages:
> 	undefined reference to terminate(void);
> 	undefined reference to unexpected(void);

These functions are in the libstdc++ library.  Append -lstdcxx to your 
link command line.

- Raw text -


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