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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,287b200f57d5fa05 X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: GNAT, Windsock, and DLLs Date: 1998/04/16 Message-ID: <353617FB.2CF2@gsfc.nasa.gov>#1/1 X-Deja-AN: 344673949 Content-Transfer-Encoding: 7bit References: <6gvp5f$evp$1@owens.ridgecrest.ca.us> Content-Type: text/plain; charset=us-ascii Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Mime-Version: 1.0 Reply-To: Stephen.Leake@gsfc.nasa.gov Newsgroups: comp.lang.ada Date: 1998-04-16T00:00:00+00:00 List-Id: Do-While Jones asks how to use GNAT to link with Windows 95 DLLs. The answer is that you need to include Windows .lib files in your link command. .lib files are normal library files; they usually contain object files. For DLLs, they just contain the information on how to call the DLL. So, where to you get the .lib files for the Windows DLLs? One source is the Win32Ada binding; I think that is part of the GNAT distribution. I'm not sure if the winsock DLL is covered in that distribution. There should also be a tool that generates a .lib file from a DLL; the DLL (if built properly) has all the information needed to build a lib file. I don't think the GNAT distribution has such a tool. (there is an executable called "dlltool", but it creates a dll). Borland C++ comes with a dll to lib tool called "implib.exe" (I've used it). However, you can't use that with GNAT, because the library and object file formats are different between GNAT and Borland (and Microsoft, as well). So, does anyone know if there is an "implib" for GNAT? -- - Stephe