comp.lang.ada
 help / color / mirror / Atom feed
From: Hing Chan <hchan@logicon.com>
Cc: hchan@logicon.com
Subject: Interfacing between Ada, C, C++
Date: 1996/08/05
Date: 1996-08-05T00:00:00+00:00	[thread overview]
Message-ID: <32068293.7831@logicon.com> (raw)
In-Reply-To: Z0q5ND5w165w@bwalk.dm.com


Hi,

I am investigating the interface problem between C++ and Ada.
We have legacy programs written in Ada that needs to be modified to
use Orbix proxy classes (C++).  The bulk of the code will remain
in Ada except the part of the code that uses the ORB.  

We have success calling C functions from Ada by using the Interface
Pragma for C and calling C main function from the top level Ada 
procedure.  However, we don't know how to deal with C++.
Specifically, C++ compiler changes the name of C++ functions (name
mangling).  A workaround for this is to write a C wrapper around
C++ functions and compile the C and C++ modules with the same
compiler.  However, other issues that remain and we have no
answer for are:

Will Ada tasks (threads) interface with C++/C threads? 
Will Ada I/O conflicts with C++ I/O?
Will Ada exceptions conflict with C++ exceptions?
Ada elaboration (constructor) vs. C++ constructors/destructors?

Anyone has any experience with interfacing Ada and C++ or answers
to any of the above questions, please email me directly (I don't 
read newsgroup too often).  My email address is hchan@logicon.com.

Thanks In advance.

-- 
Hing Chan                         Logicon Inc.
Member of Technical Staff         222 W. 6th St.
DAOC                              P.O. Box 471
(310) 831-0611 x2366              San Pedro, CA 90733-0471
fax: (310) 521-2673
hchan@logicon.com




           reply	other threads:[~1996-08-05  0:00 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <Z0q5ND5w165w@bwalk.dm.com>]
replies disabled

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