How can i link those files ?

Programming, for all ages and all languages.
Post Reply
www27

How can i link those files ?

Post 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)?
Post Reply