From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,767107daf042cb53,start X-Google-Attributes: gid103376,public From: Perry Adams Subject: Ada/C++ Interfacing With C++ Exceptions Date: 1998/05/01 Message-ID: <3549CB02.181FFD1@thermoinfo.com>#1/1 X-Deja-AN: 349327355 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Thermo Information Solutions Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-05-01T00:00:00+00:00 List-Id: I am writing Ada 83 bindings to C++ code on a Sun (SunAda 2.1.1 and C++ SC3.0.1). Everything works until the C++ code raises an exception. Even though the C++ code has exception handlers, they are not being handled. I think the problem is that the C++ exception libraries is not being linked. The Ada compiler uses /usr/ccs/bin/ld to link while the C++ compiler uses /usr/ucb/ld. The C++ compiler passes -exceptions option to ld when exceptions are needed. The linker used by the Ada compiler does not have a similar option. Is there a specific library that I need to link with to get C++ exceptions? What is the difference between the linkers? Are my problems due to older compilers?