From: Ted Dennison <dennison@telepath.com>
Subject: Re: Interfacing with C
Date: 1999/09/22
Date: 1999-09-22T00:00:00+00:00 [thread overview]
Message-ID: <7sb3e7$is2$1@nnrp1.deja.com> (raw)
In-Reply-To: 7s9nke$m2o@dfw-ixnews15.ix.netcom.com
In article <7s9nke$m2o@dfw-ixnews15.ix.netcom.com>,
Richard D Riehle <LaoXhai@ix.netcom.com> wrote:
> We have a client who needs to interface to C++. Has anyone completed
a reliable
> package that corresponds to the Interfaces.C for C++? At present,
they are using
That's not really doable unless the Ada compiler is coded with knowledge
of the name-mangling algorithm that the C++ compiler uses (which is
*not* in the standard, and thus is subject to change every time the C++
compiler is revised). If you are using gcc and Gnat you may be in luck,
but I'm unaware of any other compiler that can deal with this.
I believe the usual technique is to use the C++ C interface features in
the C++ code (eg: extern "C"), and Ada's C interface features in the Ada
code.
--
T.E.D.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
next prev parent reply other threads:[~1999-09-22 0:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7rtlav$bm7$1@nnrp1.deja.com>
[not found] ` <37e2b0e7.0@news.pacifier.com>
1999-09-22 0:00 ` Interfacing with C Richard D Riehle
1999-09-22 0:00 ` Ted Dennison [this message]
1999-09-22 0:00 ` David Botton
1999-09-23 0:00 ` Robert Dewar
[not found] <vhiln6cllz7.fsf@grotte.ifi.uio.no>
1999-12-30 0:00 ` Simon Wright
1999-12-31 0:00 ` Jerry van Dijk
1999-12-31 0:00 ` Simon Wright
2009-05-18 11:29 cedric
2009-05-18 11:51 ` Maciej Sobczak
2009-05-18 11:58 ` Dmitry A. Kazakov
2009-05-18 12:11 ` Ludovic Brenta
2009-05-18 12:13 ` Ludovic Brenta
2009-06-01 8:24 ` David Thompson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox