comp.lang.ada
 help / color / mirror / Atom feed
* LoadLibrary problem
@ 2004-01-11 22:27 Szymon Guz
  2004-01-12  2:54 ` David C. Hoos
  0 siblings, 1 reply; 4+ messages in thread
From: Szymon Guz @ 2004-01-11 22:27 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-12 16:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-11 22:27 LoadLibrary problem Szymon Guz
2004-01-12  2:54 ` David C. Hoos
2004-01-12  6:18   ` tmoran
2004-01-12 16:20   ` Szymon Guz

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