comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: [Fwd: Compile with C code...]
Date: 2000/10/19
Date: 2000-10-19T00:00:00+00:00	[thread overview]
Message-ID: <8sn13s$1vt$1@nnrp1.deja.com> (raw)
In-Reply-To: 39EEF80B.1242805C@cepsz.unizar.es

In article <39EEF80B.1242805C@cepsz.unizar.es>,
  Alejandro Villanueva <190921@cepsz.unizar.es> wrote:
> I'm not sure if this is a good place to ask this but: how do I
call an
> Ada procedure from a C main program using GNAT 3.11p
>
> I followed the user's guide instructions but didn't work !!
>
> These are my files attached.
>
> Thanks!

Mostly this is an implementation independent issue, look up
the use of the pragma Export in your Ada book ...

Trying to use the internal GNAT stuff is wrong, and you
need to know too much to do this. The documentation in the
users guide is assuming that you use pragma Export, since
of course this is required by the Ada 95 language in this case

Also, why use such an out of date version of GNAT?


Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~2000-10-19  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-19  0:00 [Fwd: Compile with C code...] Alejandro Villanueva
2000-10-19  0:00 ` Robert Dewar [this message]
2000-10-19  0:00   ` Alejandro Villanueva
2000-10-19  0:00     ` Pascal Obry
2000-10-19  0:00     ` David C. Hoos, Sr.
2000-10-20  0:00     ` Joel Sherrill
replies disabled

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