From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 1014db,9a2aaa729f5fbd16 X-Google-Thread: 103376,9a2aaa729f5fbd16 X-Google-Attributes: gid1014db,gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news2.arglkargh.de!news.mixmin.net!aioe.org!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c,comp.lang.ada Subject: Re: C and ADA Followup-To: comp.lang.ada Date: Wed, 02 Jan 2008 14:47:01 -0800 Organization: None to speak of Message-ID: <87d4sj26ca.fsf@kvetch.smov.org> References: NNTP-Posting-Host: aVIvKdUSjN4PsAbmZ6BGcQ.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@aioe.org Cancel-Lock: sha1:oAvOAz189pBA4Fv6W/S+hx/GKps= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Xref: g2news1.google.com comp.lang.c:154112 comp.lang.ada:19158 Date: 2008-01-02T14:47:01-08:00 List-Id: Brian writes: > 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. Ada (not "ADA"; it's not an acronym) provides mechanisms for cross-language calls between Ada and C; C does not. The folks in comp.lang.c won't be able to answer your question. I've redirected followups just to comp.lang.ada, and I suggest that others do likewise. -- Keith Thompson (The_Other_Keith) [...] "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"