* generation of bindings @ 2001-10-18 7:07 Alfred Hilscher 2001-10-18 9:44 ` Peter Hend�n 0 siblings, 1 reply; 3+ messages in thread From: Alfred Hilscher @ 2001-10-18 7:07 UTC (permalink / raw) Hi, I have a DLL (on WinNT) where I want write (Ada-) bindings for. I wrote a package spec like: package XY_Binding is procedure AB; pragma Import (Stdcall, AB, "AB"); end XY_Binding; Now an application using this compiles, but during linking it reports error "missing AB". I've seen that for the Windows binding for example, there are "*.a" files for GNAT and "*.lib" files for Aonix. Can someone give me a hint, how to create such a file for my binding ? ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: generation of bindings 2001-10-18 7:07 generation of bindings Alfred Hilscher @ 2001-10-18 9:44 ` Peter Hend�n 2001-10-18 12:53 ` Alfred Hilscher 0 siblings, 1 reply; 3+ messages in thread From: Peter Hend�n @ 2001-10-18 9:44 UTC (permalink / raw) [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 670 bytes --] "Alfred Hilscher" wrote: > I have a DLL (on WinNT) where I want write (Ada-) bindings for. I wrote > a package spec like: > > package XY_Binding is > procedure AB; > > pragma Import (Stdcall, AB, "AB"); > end XY_Binding; You'll find most of this covered in the GNAT user's guide in the section "Using DLLs with GNAT". If your .dll has no import library (a .lib or .a file), you'll need to create one. For this you can use the dll2def and the gnatdll utilities also described in the user's guide. I hope this helps. Regards, Peter H. -- Peter Hend�n http://www.algonet.se/~phenden ICQ: 14672398 Teknisk Dokumentation AB http://www.tdab.com ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: generation of bindings 2001-10-18 9:44 ` Peter Hend�n @ 2001-10-18 12:53 ` Alfred Hilscher 0 siblings, 0 replies; 3+ messages in thread From: Alfred Hilscher @ 2001-10-18 12:53 UTC (permalink / raw) Many thanks, I found it. "Peter Hend�n" wrote: > You'll find most of this covered in the GNAT user's guide in the > section "Using DLLs with GNAT". If your .dll has no import library ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-10-18 12:53 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2001-10-18 7:07 generation of bindings Alfred Hilscher 2001-10-18 9:44 ` Peter Hend�n 2001-10-18 12:53 ` Alfred Hilscher
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox