comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org>
Subject: Re: calling ada from c with an array param
Date: Mon, 21 Sep 2009 10:29:46 -0700
Date: 2009-09-21T10:29:46-07:00	[thread overview]
Message-ID: <h98clj$22e$1@news.tornevall.net> (raw)
In-Reply-To: <0208bf86-cba9-45db-a43c-53c249bf9ae6@l34g2000vba.googlegroups.com>

Mike wrote:
> I'm new to Ada so I'm trying to expand a simple c example that passed
> primitive types to an Ada
> function. I'm trying to call an ada procedure from a c program with an
> in out float array using GNAT. I read you should not use an
> unconstrained array so I tried the following

You should not be messing with mixed-language programming until you are no 
longer new to Ada. Much of your problem comes from the fact that you don't 
understand packages yet.

When you do get to mixed-language programming, you should never use any types in 
your code that interfaces with C that are not declared in Interfaces.C and its 
children, or that are declared to be Convention C.

-- 
Jeff Carter
"It's all right, Taggart. Just a man and a horse being hung out there."
Blazing Saddles
34



  parent reply	other threads:[~2009-09-21 17:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-20 19:38 calling ada from c with an array param Mike
2009-09-20 19:59 ` Jan Andres
2009-09-21  8:04 ` Dmitry A. Kazakov
2009-09-21  8:08   ` Dmitry A. Kazakov
2009-09-21 17:29 ` Jeffrey R. Carter [this message]
2009-09-21 19:58 ` sjw
replies disabled

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