From: "Matthew Heaney" <matthew_heaney@acm.org>
Subject: Re: C++ calling Ada code?
Date: 1999/11/08
Date: 1999-11-08T00:00:00+00:00 [thread overview]
Message-ID: <382701ff_1@news1.prserv.net> (raw)
In-Reply-To: 87puxlytto.fsf@antinea.enst.fr
In article <87puxlytto.fsf@antinea.enst.fr> , Samuel Tardieu
<sam@ada.eu.org> wrote:
>>Are there resources available that you know of on how
>>to get C++ to call Ada routines? Has anyone tried this?
>
> The simplest way of doing this if you just want to call Ada
> subprograms from C++ is probably to export your Ada programs with
> convention C (see the reference manual) and declare those functions in
> C++ with "extern C".
You may need to call "adainit" and "adafinal" too, to ensure that the
all the necessary Ada code gets elaborated.
--
Evolution is "only" a theory? "Creationism is not *even* a theory,
because its proponents have decided in advance that no amount of
evidence will change their beliefs."
Steve Walsh and Thomas Demere, "Facts, Faith, and Fairness"
prev parent reply other threads:[~1999-11-08 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-08 0:00 C++ calling Ada code? Caroline
1999-11-08 0:00 ` Samuel Tardieu
1999-11-08 0:00 ` Matthew Heaney [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