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,19cd059989cc8b42,start X-Google-Attributes: gid103376,public From: Ken Kham Subject: Calling an ADA-95 function from a C program Date: 1998/09/01 Message-ID: <35EC03D5.147AA78A@maxisp.com.au>#1/1 X-Deja-AN: 386796599 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-09-01T00:00:00+00:00 List-Id: I am trying to call an ADA-95 function from a main C program. Can anybody give a step by step explanation about how to do it? including how to invoke gcc, gnatbind, gnatlink Yes, I did look at the GNAT User guide on the section "Binding for Non-Ada main programs" and did not have any luck. Basically what I want to do is: in Main C program: result := ada_function(); In an ADa packagge, I would have function ada_function return integer;