From: Szymon Guz <alpha@SMIECI_WON.skynet.org.pl>
Subject: LoadLibrary problem
Date: Sun, 11 Jan 2004 23:27:48 +0100
Date: 2004-01-11T23:27:48+01:00 [thread overview]
Message-ID: <Xns946DEEAEE1E18Szymon.Guz@193.110.122.80> (raw)
Hi,
I keep on trying to load a dll library using for that the WinApi
function LoadLibrary.
<CODE>
with Interfaces.C;
procedure Lib is
package C renames Interfaces.C;
use type C.Char_Array;
function LoadLib (
Library : in C.Char_Array )
return C.Int;
pragma Import(C,LoadLib,"LoadLibrary");
Handle : C.Int;
begin
Handle:=LoadLib("a");
end Lib;
</CODE>
I still get the linker error:
./Lib.o(.text+0x12):Lib.adb: undefined reference to `LoadLibrary'
Where is the mistake ?
I'm using gnat and AdaGIDE under Windows98.
--
Szymon Guz
next reply other threads:[~2004-01-11 22:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-11 22:27 Szymon Guz [this message]
2004-01-12 2:54 ` LoadLibrary problem David C. Hoos
2004-01-12 6:18 ` tmoran
2004-01-12 16:20 ` 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