Bindings for DLL with GNAT
From: Bernd Specht (Bernd.Specht_at_gmx.com)
Date: 03/25/04
- Next message: chris: "Re: OT: GUI [was:]Ann: TeXCAD 4.1"
- Previous message: Roger Blum: "Gnat Glade newbie questions"
- Next in thread: Szymon Guz: "Re: Bindings for DLL with GNAT"
- Reply: Szymon Guz: "Re: Bindings for DLL with GNAT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 25 Mar 2004 12:59:42 GMT
Hello,
I've some trouble with generating bindings for a dll (GNAT on Win2k).
I've written a spec containing the definitions and added:
pragma import (stdcall, XY, "XY");
Then I generated a import-library as described in gnat_ug.
When linking, the linker tells me, it miss a "XY@8". So I added the "@8" in
the ".def"-file. Then link works, but at runtime I get a message "XY@8" not
found in dll.
In fact, the name in the DLL is without "@8" (but the linker expects it).
Any ideas?
Regards,
Bernd
- Next message: chris: "Re: OT: GUI [was:]Ann: TeXCAD 4.1"
- Previous message: Roger Blum: "Gnat Glade newbie questions"
- Next in thread: Szymon Guz: "Re: Bindings for DLL with GNAT"
- Reply: Szymon Guz: "Re: Bindings for DLL with GNAT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|