How can i link those files ?
Posted: Mon Jan 27, 2003 2:48 am
/* 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)?
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)?