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.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,99e43f8b7cf1c92b X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: Re: C++ calling Ada code? Date: 1999/11/08 Message-ID: <382701ff_1@news1.prserv.net>#1/1 X-Deja-AN: 545969018 Content-transfer-encoding: 7bit References: <3826D23F.D1768C66@cpmx.saic.com> <87puxlytto.fsf@antinea.enst.fr> Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@prserv.net X-Trace: 8 Nov 1999 17:01:51 GMT, 32.101.8.214 Organization: Global Network Services - Remote Access Mail & News Services Mime-version: 1.0 Newsgroups: comp.lang.ada Date: 1999-11-08T00:00:00+00:00 List-Id: In article <87puxlytto.fsf@antinea.enst.fr> , Samuel Tardieu 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"