comp.lang.ada
 help / color / mirror / Atom feed
From: grave <grave@ipnsun5.in2p3.fr>
To: Ken Kham <kham@maxisp.com.au>
Subject: Re: Calling an ADA-95 function from a C program
Date: 1998/09/02
Date: 1998-09-02T00:00:00+00:00	[thread overview]
Message-ID: <35ECF33D.62EC@ipnsun5.in2p3.fr> (raw)
In-Reply-To: 35EC03D5.147AA78A@maxisp.com.au

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.




  reply	other threads:[~1998-09-02  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 [this message]
1998-09-03  0:00   ` dewarr
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox