Date: Tue, 27 Feb 1996 10:37:07 +0200 (IST) From: Eli Zaretskii To: Jerry Lee 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: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.