From: dewarr@my-dejanews.com
Subject: Re: Calling an ADA-95 function from a C program
Date: 1998/09/03
Date: 1998-09-03T00:00:00+00:00 [thread overview]
Message-ID: <6skp2p$20v$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 35ECF33D.62EC@ipnsun5.in2p3.fr
In article <35ECF33D.62EC@ipnsun5.in2p3.fr>,
grave <grave@ipnsun5.in2p3.fr> 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
prev parent reply other threads:[~1998-09-03 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-09-01 0:00 Calling an ADA-95 function from a C program Ken Kham
1998-09-02 0:00 ` grave
1998-09-03 0:00 ` dewarr [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox