comp.lang.ada
 help / color / mirror / Atom feed
* [Fwd: Compile with C code...]
@ 2000-10-19  0:00 Alejandro Villanueva
  2000-10-19  0:00 ` Robert Dewar
  0 siblings, 1 reply; 6+ messages in thread
From: Alejandro Villanueva @ 2000-10-19  0:00 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 314 bytes --]



--
------------------------------------------------------
�Quieres Cobrar por Navegar en Internet?
Visita: http://www.navegana.com/dinero/flintstone.html
------------------------------------------------------
Alejandro Villanueva
190921@cepsz.unizar.es
------------------------------------------------------



[-- Attachment #2: Type: message/rfc822, Size: 2162 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 550 bytes --]

Hi you all,

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!

--
------------------------------------------------------
�Quieres Cobrar por Navegar en Internet?
Visita: http://www.navegana.com/dinero/flintstone.html
------------------------------------------------------
Alejandro Villanueva
190921@cepsz.unizar.es
------------------------------------------------------



[-- Attachment #2.1.2: hola.adb --]
[-- Type: text/plain, Size: 85 bytes --]

with Text_IO; use Text_IO;
procedure Hola is
begin
   Put_Line ("Hola!");
end Hola;


[-- Attachment #2.1.3: hola.ads --]
[-- Type: text/plain, Size: 54 bytes --]

procedure Hola;
pragma Export (C, Hola, "ada_hola");


[-- Attachment #2.1.4: main.c --]
[-- Type: text/plain, Size: 65 bytes --]

void main(void) {
   adainit();
   ada_hola();
   adafinal();
}


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-10-20  0:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-19  0:00 [Fwd: Compile with C code...] Alejandro Villanueva
2000-10-19  0:00 ` Robert Dewar
2000-10-19  0:00   ` Alejandro Villanueva
2000-10-19  0:00     ` David C. Hoos, Sr.
2000-10-19  0:00     ` Pascal Obry
2000-10-20  0:00     ` Joel Sherrill

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