Mail Archives: djgpp/1998/06/26/12:40:34
I'm new to DJGPP and I'm having some problems using C++
exception-handling. The following code
> #include <iostream>
>
> int main()
> {
> try
> {
> cout << "throwing an exception... ";
> throw("exception throwed!");
> }
> catch(const char *msg)
> {
> cout << msg << endl;
> }
> return 0;
> }
produces the following output:
> throwing an exception... Abort!
I think unexpected(), or terminate() is been called, but why?
(I'm using DJGPP 2.1, binutils 2.8.1, gcc 2.8.0, gpp 2.8.0)
Thanks in advance,
Leonardo Brondani Schenkel <schenkel AT cpd DOT ufsm DOT br>
(please reply by e-mail; I'm not a subscriber of the list)
- Raw text -