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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed10.multikabel.net!post1.tilbu1.nb.home.nl!cache2.tilbu1.nb.home.nl!not-for-mail From: =?UTF-8?q?Harald_van_D=C4=B3k?= Subject: Re: C and ADA Newsgroups: comp.lang.c,comp.lang.ada References: User-Agent: Pan/0.132 (Waxed in Black) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: <37b7f$477c13dd$541dfcd3$9262@cache2.tilbu1.nb.home.nl> X-Complaints-To: abuse.home.news@prolocation.net Organization: @home Date: Wed, 02 Jan 2008 23:44:45 +0100 NNTP-Posting-Host: 84.29.252.211 (84.29.252.211) NNTP-Posting-Date: Wed, 02 Jan 2008 23:44:45 +0100 X-Trace: 37b7f477c13ddf1b8597609262 Xref: g2news1.google.com comp.lang.c:154111 comp.lang.ada:19157 Date: 2008-01-02T23:44:45+01:00 List-Id: On Wed, 02 Jan 2008 23:33:10 +0100, Brian 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? C doesn't define how to mix C with other languages. I believe Ada does define how to mix Ada with other languages, so you're better off asking in an Ada newsgroup.