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: dewarr@my-dejanews.com Subject: Re: Calling an ADA-95 function from a C program Date: 1998/09/03 Message-ID: <6skp2p$20v$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 387303347 References: <35EC03D5.147AA78A@maxisp.com.au> <35ECF33D.62EC@ipnsun5.in2p3.fr> X-Http-Proxy: 1.0 x5.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Sep 03 00:49:29 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/2.02 (OS/2; I) Date: 1998-09-03T00:00:00+00:00 List-Id: In article <35ECF33D.62EC@ipnsun5.in2p3.fr>, grave wrote: > 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. > No, this is wrong advice, clearly you want pragma Export here, not pragma Convention. -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum