Page 1 of 1

How can i link those files ?

Posted: Mon Jan 27, 2003 2:48 am
by www27
/* www.c */
extern show();
main {
show();
}

-- hello.ads
with ada.text_io;
use ada.text_io;

package hello is
procedure show;
pragma export(c,show);
end hello;

--hello.adb
package body hello is
procedure show is
begin
put ("hello !!!!");
end show;
end hello;

gnatmake -c hello.adb www.c
gnatbind -n hello.ali
how can i get the www.exe (main procedure in c file)?