Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Greg Phillips , djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Compile errors... Date: Sun, 10 May 1998 20:54:34 -0700 Message-ID: <19980511035425.AAD4598@ppp107.cartsys.com> Precedence: bulk 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