From: Maxwelton <maxwelton@my-deja.com>
Subject: Calling Ada from C
Date: 2000/08/25
Date: 2000-08-25T00:00:00+00:00 [thread overview]
Message-ID: <8o6pf3$m0i$1@nnrp1.deja.com> (raw)
I am missing something in a program I am working on. I am using a C
function to call a function in Ada. I have the function defined in
a ".h" file as an "extern". It takes a string as a parameter. In Ada I
have a function with the same name defined along with the export pragma
in the .ads file. The C function name is the 3rd parameter. If I were
calling "C" from Ada I would use the import pragma. The .adb file has
the function containing
procedure To_Ada (Item : in char_array;
Target : out String;
Count : out Natural;
Trim_Nul : in Boolean := True);
I am using the Interfaces.C package in my ada files. My files compile
but the C compilation generates an error that states "undefined
function". What am I not doing?
--
Maxwelton
Sent via Deja.com http://www.deja.com/
Before you buy.
next reply other threads:[~2000-08-25 0:00 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-25 0:00 Maxwelton [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-02-22 15:46 Calling Ada from C hannibal.holm
2007-02-22 16:17 ` Ludovic Brenta
2007-02-22 17:28 ` Adam Beneschan
2007-02-22 20:40 ` Aurele
2007-02-23 13:53 ` Stephen Leake
2007-02-27 12:49 ` hannibal.holm
2007-02-27 18:03 ` Adam Beneschan
2007-02-28 2:54 ` Jeffrey R. Carter
1996-10-29 0:00 How is an ADA compiler done? Robert Dewar
1996-11-08 0:00 ` calling ADA from C EDSTAM Mikael
1996-11-14 0:00 ` Robert Dewar
1995-03-22 13:26 Calling Ada " Roger L Costello
1995-03-22 13:58 ` David Paton
1995-03-23 17:22 ` Theodore Dennison
1995-03-24 17:14 ` Larry Kilgallen, LJK Software
1995-03-26 11:53 ` Robert Dewar
1995-03-27 14:47 ` Theodore Dennison
1995-03-28 0:00 ` Robert Dewar
1995-03-28 0:00 ` Cyrille Comar
1995-03-29 2:47 ` Larry Kilgallen, LJK Software
1995-03-29 0:00 ` Theodore Dennison
1995-04-04 0:00 ` Robert Dewar
1995-03-27 19:48 ` Robert I. Eachus
1995-03-29 0:00 ` Larry Kilgallen, LJK Software
1991-02-23 16:01 calling " David B Lightstone
1988-10-16 0:23 calling ada from c Maureen Cragg
1988-10-17 17:21 ` Maureen Cragg
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox