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.3 required=5.0 tests=BAYES_00,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: Samuel Tardieu Subject: Re: C++ calling Ada code? Date: 1999/11/08 Message-ID: <87puxlytto.fsf@antinea.enst.fr>#1/1 X-Deja-AN: 545902420 References: <3826D23F.D1768C66@cpmx.saic.com> Mail-Copies-To: sam@ada.eu.org Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@menuisier.enst.fr X-Trace: menuisier.enst.fr 942069123 13442 137.194.160.145 (8 Nov 1999 13:52:03 GMT) Organization: TELECOM Paris User-Agent: Gnus/5.070099 (Pterodactyl Gnus v0.99) XEmacs/21.1 (Bryce Canyon) Mime-Version: 1.0 NNTP-Posting-Date: 8 Nov 1999 13:52:03 GMT Newsgroups: comp.lang.ada Date: 1999-11-08T13:52:03+00:00 List-Id: >>>>> "Caroline" == Caroline 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