* C++ calling Ada code?
@ 1999-11-08 0:00 Caroline
1999-11-08 0:00 ` Samuel Tardieu
0 siblings, 1 reply; 3+ messages in thread
From: Caroline @ 1999-11-08 0:00 UTC (permalink / raw)
We will be working on a project where we will use C++ code (written by
us) to talk to and use Ada code (not written by us). Are there
resources available that you know of on how to get C++ to call Ada
routines? Has anyone tried this?
Thanks
Caroline
--
Caroline Swindell
Remove "NOSPAM." to reply.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: C++ calling Ada code?
1999-11-08 0:00 ` Samuel Tardieu
@ 1999-11-08 0:00 ` Matthew Heaney
0 siblings, 0 replies; 3+ messages in thread
From: Matthew Heaney @ 1999-11-08 0:00 UTC (permalink / raw)
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"
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: C++ calling Ada code?
1999-11-08 0:00 C++ calling Ada code? Caroline
@ 1999-11-08 0:00 ` Samuel Tardieu
1999-11-08 0:00 ` Matthew Heaney
0 siblings, 1 reply; 3+ messages in thread
From: Samuel Tardieu @ 1999-11-08 0:00 UTC (permalink / raw)
>>>>> "Caroline" == Caroline <caroline.j.swindellNOSPAM@cpmx.saic.com> writes:
Caroline> We will be working on a project where we will use C++ code
Caroline> (written by us) to talk to and use Ada code (not written by
Caroline> us). Are there resources available that you know of on how
Caroline> 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".
Caroline> Remove "NOSPAM." to reply.
Non valid address in From: field violate RFC 1036.
Sam
--
Samuel Tardieu -- sam@ada.eu.org
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-11-08 0:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox