Mail Archives: djgpp/1998/05/11/00:02:13
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 -