comp.lang.ada
 help / color / mirror / Atom feed
From: Bernd.Specht@gmx.com (Bernd Specht)
Subject: Bindings for DLL with GNAT
Date: 25 Mar 2004 12:59:42 GMT
Date: 2004-03-25T13:59:42+01:00	[thread overview]
Message-ID: <Xns94B58E7672AA7BerndSpechtgmxcom@151.189.20.10> (raw)

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



             reply	other threads:[~2004-03-25 12:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-25 12:59 Bernd Specht [this message]
2004-03-25 19:30 ` Bindings for DLL with GNAT Szymon Guz
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox