From: Ian Miller Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP and exceptions Date: Thu, 21 Nov 1996 16:57:09 +0000 Organization: DRA Lines: 24 Message-ID: <329489E4.41C67EA6@dra.hmg.gb> References: <3293799E DOT 1ADB AT www-mail DOT huji DOT ac DOT il> NNTP-Posting-Host: 146.80.115.106 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Lisa Kremer To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Lisa Kremer wrote: > > Hi all, > > I am using DJGPP 2.0 with RHIDE. > Wrote a program that uses exceptions. Compiling with the > -fhandle-exceptions was fine, but the linkage was stopped by an error: > > Linking: > myfile.cc(.text+0x113): undefined reference to 'terminate(void)' > > As far as I know, the word 'terminate' does not appear in my > program, which compiles and executes on a Sun with g++ 2.72 > > Can anyone resolve this one ? Yes. You need to link in libstdcx.a. Don't use ANY optimisation by the way, gcc's exception handling is still in development at the moment. Regards, -- Ian Miller, Dorset, UK DJGPP 2.01, Win95 DOS box (LFN undefined, FNCASE=y)