From: Jerry <lanceboyle@qwest.net>
Subject: Re: C and ADA
Date: Wed, 2 Jan 2008 23:38:09 -0800 (PST)
Date: 2008-01-02T23:38:09-08:00 [thread overview]
Message-ID: <17fdc875-668b-4e9f-948c-9bb2898cf47c@e23g2000prf.googlegroups.com> (raw)
In-Reply-To: slrnfno496.3gs.nospam@nospam.invalid
On Jan 2, 3:33 pm, Brian <nos...@nospam.invalid> wrote:
> Hi I have an ADA function that I'd like to call from my C program.
>
> Is there any way to provide a .h file containing a C prototype for the
> ADA function and then link the ADA with the C? Does anyone have any
> experience of this?
>
> I'm using a GNU setup on Linux.
>
> Thanks.
This process is described here (as well as the opposite process where
the main program is Ada);
http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Interfacing-to-C.html#Interfacing-to-C
Also, see the Ada Reference Manual:
http://www.adaic.com/standards/05rm/html/RM-B-3.html
FWIW, I've done this sort of thing using GPC, the GNU Pascal compiler,
with good results.
Jerry
next prev parent reply other threads:[~2008-01-03 7:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-02 22:33 C and ADA Brian
2008-01-02 22:44 ` Harald van Dijk
2008-01-02 22:47 ` Keith Thompson
2008-01-02 23:09 ` Lucretia
2008-01-03 7:38 ` Jerry [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-10-22 0:00 C++ and Ada yuen3785
1998-10-22 0:00 yuen3785
1998-10-23 0:00 ` Stephen Leake
1998-10-23 0:00 ` Jerry van Dijk
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox