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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4e101bd1b1b0a66c X-Google-Attributes: gid103376,public From: Geert Bosch Subject: Re: Calling Ada proceedures from a C program Date: 1999/05/20 Message-ID: <3744831D.2D5E87F6@act-europe.fr>#1/1 X-Deja-AN: 480281925 Content-Transfer-Encoding: 7bit References: <37444D8D.B6C7D7E5@orca.ds.boeing.com> <7i1o7l$d3j@hobbes.crc.com> X-Accept-Language: en,fr,nl,es,de,it Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 927236706 13717 164.138.111.162 (20 May 1999 21:45:06 GMT) Organization: ACT Europe Mime-Version: 1.0 Reply-To: geert@gnat.com NNTP-Posting-Date: 20 May 1999 21:45:06 GMT Newsgroups: comp.lang.ada Date: 1999-05-20T21:45:06+00:00 List-Id: "David C. Hoos, Sr." wrote: > >I have a linking/binding question. I'm trying to call an Ada proc. > >from a C program. Something like... > Before anyone can help, you need to specify at least the compiler > you're using, as the procedure is compiler-dependent. This is not totally correct. The general mechanism, including initialization and finalization is standardized in Ada95. Look in the RM for pragma Export (C, ...), "adainit", "adafinal". Annex B is the place to look for most of the information. On the details for compilation commands you'd have to read your compiler's documentation. Regards, Geert