OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Mar 29, 2024 7:46 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How can i link those files ?
PostPosted: 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)?


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 36 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group