From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e68e37dea4572ced,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-11 14:30:15 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!t-online.de!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: Szymon Guz Newsgroups: comp.lang.ada Subject: LoadLibrary problem Date: Sun, 11 Jan 2004 23:27:48 +0100 Organization: tp.internet - http://www.tpi.pl/ Message-ID: NNTP-Posting-Host: hal.skynet.org.pl Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit X-Trace: atlantis.news.tpi.pl 1073860232 3201 195.116.185.50 (11 Jan 2004 22:30:32 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Sun, 11 Jan 2004 22:30:32 +0000 (UTC) User-Agent: Xnews/5.04.25 X-Face: 2kZb_m>wZv*"xh%mC|n4jpq=W|nAdu)Y"pk8YXhvZkauLtkfDE-?!5ku>`n6L5}W@bvC97>PVI]?T)NL8nw0E[J[Vak$br)^pi2tTf)`&%,ji-16rzZYAGE^t_GSFqQ9.x3+}?Z3SFBDd:9c'i1a@&&*zfe?8;E*CqtDEu&_=KZlH;TJ1?O[p57kx104fCe.anbv2`x\Ut;cZ?gui(-qYYy=R;8ND{Mh%kxyh^#^\d(_6*2t Xref: archiver1.google.com comp.lang.ada:4342 Date: 2004-01-11T23:27:48+01:00 List-Id: Hi, I keep on trying to load a dll library using for that the WinApi function LoadLibrary. 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; 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