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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8322da3f8f90f31d X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: gnat3.04a1 on Win95: linking a DLL Date: 1996/08/26 Message-ID: <3221A35A.167EB0E7@escmail.orl.mmc.com>#1/1 X-Deja-AN: 176561538 references: content-type: text/plain; charset=us-ascii organization: Lockheed Martin Information Systems mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3_U1 sun4m) Date: 1996-08-26T00:00:00+00:00 List-Id: Terry J. Westley wrote: > > Newbie on Windows 95 searching for info on how to "link" a GNAT Ada program > with a DLL. Actually, I want to know how to tell the linker NOT to attempt > to resolve a reference to a symbol I know to be in the DLL. > > After searching Lycos, DejaNews, the GCC and GNAT docs, I can not find > anything on this subject. Lots of stuff on how to create a DLL with GNAT, > but not on how to link with an existing one. My last idea was that it > was a variation on pragma Interface, but couldn't find anything in > sem_prag.adb. I know this story well, as I went through it myself about a month ago. Here are your options - o Purchase a Microsoft Linker. One comes with Visaul C++ (about $300). Install it, then rebuild LabTek's gnat. o Search the net for a Win32 lib*.a file made from that DLL. The gnu linker uses lib*.a files, not *.DLL files. If its a Micro$oft DLL, you are probably out of luck. o Create a lib*.a from the DLL. There are detailed instructions on how to do this in the GnuWin32 mailing list archives ( http://www.cygnus.com/ml/gnu-win32/ ). It is not a simple process, and is not even fully automated (unless you have access to a Linux machine). If anyone has a better method for making the lib's from DLL's, please speak up! Out of curiosity, which DLL do you want? -- T.E.D. | Work - mailto:dennison@escmail.orl.mmc.com | | Home - mailto:dennison@iag.net | | URL - http://www.iag.net/~dennison |