From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Interfacing ADA to C++ classes with parameters
Date: 03 Apr 2002 14:01:02 -0500
Date: 2002-04-03T19:06:22+00:00 [thread overview]
Message-ID: <ug02c61zl.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: a8ete9$sa8$1@hamble.qinetiq.com
"John Haddon" <jf_haddon@QinetiQ.com> writes:
> Dear All,
>
> I'm having a problem writing an interface to a C++ class in which I want to
> pass a parameter in addition to the object.
Interfacing directly to C++ is _not_ defined for Ada. You can make it
work, as you have discovered. However, a better approach is to export
functions from C++ using "extern C", and then import them to Ada using
"Import (C, ...)".
--
-- Stephe
prev parent reply other threads:[~2002-04-03 19:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-03 12:46 Interfacing ADA to C++ classes with parameters John Haddon
2002-04-03 13:53 ` Sergey Koshcheyev
2002-04-04 8:18 ` John Haddon
2002-04-05 15:44 ` Robert Dewar
2002-04-05 19:15 ` Ted Dennison
2002-04-03 14:28 ` Mário Amado Alves
2002-04-03 19:01 ` Stephen Leake [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox