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 X-Google-Attributes: gid103376,public From: grave Subject: Re: Calling an ADA-95 function from a C program Date: 1998/09/02 Message-ID: <35ECF33D.62EC@ipnsun5.in2p3.fr>#1/1 X-Deja-AN: 387053195 Content-Transfer-Encoding: 7bit References: <35EC03D5.147AA78A@maxisp.com.au> To: Ken Kham Content-Type: text/plain; charset=us-ascii Organization: I.P.N Orsay Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-09-02T00:00:00+00:00 List-Id: Ken Kham wrote: > > > In an ADa packagge, I would have > function ada_function return integer; Did you add : pragma Convention(C,ada_function); After gcc -c my_ada_package.adb you link you C programme with my_ada_package.o I think this would function.