Mail Archives: djgpp/1996/01/16/02:12:42
I've read the latest FAQ, and it implies that exception handling is
available, unless they mean something like Linux, or solaris when they
say exception handling is available for x86. It doesn't seem to be
working for me though, so can someone tell me if exception handling
simply isn't available yet for DOS, or if I've done something wrong?
The symptoms: I've compiled GCC 2.7.2 and libg++-2.7.1 (hopefully
correctly - that remains to be seen). Simple hello, world programs seem
to work in C and C++, but I admit to not trying any more complex
programs. I've written a small program which basically throws an
exceptions and outputs messages to trace the flow of code. I compile with
the -fhandle-exceptions flag and attempt to link but get the following
errors:
In function 'main' - undefined reference to 'terminate(void)'
In function '__throw" undefined reference to 'terminate(void)'
I've poked around in the likeliest (to me) spot - except.c - and found
lots of comments. Is this particular implementation not complete yet, or
did my build fail at some point?
Thanks in advance for any help.
---------------------------------------------------------------------
Michael Wesolowski (mewesolo AT freenet DOT calgary DOT ab DOT ca)
- Raw text -