comp.lang.ada
 help / color / mirror / Atom feed
From: Perry Adams <adamsp@thermoinfo.com>
Subject: Ada/C++ Interfacing With C++ Exceptions
Date: 1998/05/01
Date: 1998-05-01T00:00:00+00:00	[thread overview]
Message-ID: <3549CB02.181FFD1@thermoinfo.com> (raw)


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?





                 reply	other threads:[~1998-05-01  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox