Mail Archives: djgpp/1998/05/19/20:21:11
At 05:24 5/19/1998 +0200, erikyyy AT studbox DOT uni-stuttgart DOT de wrote:
>
>Although djgpp compiles the following source without warnings, it
>still doesn't work:
>
>#include <iostream>
>#include <memory>
>
>class rrrr {};
>
>int main()
>{
> try {
> throw rrrr();
> }
> catch (rrrr) {
> cerr << "excpt\n";
> };
> cerr << "normal\n";
> return 0;
>};
>
>on linux, this program writes "excpt\nnormal\n" on stderr.
>on djgpp it doesn't. (it just does "Abort!")
>
If this is 2.8.0, you can compile with the switch `-fsjlj-exceptions' (and
no, I didn't just bang on the keyboard to produce that). Or you can upgrade
to 2.8.1, where exceptions apparently work without problems.
If you are using less than 2.8.x, upgrade.
Nate Eldredge
nate AT cartsys DOT com
- Raw text -