From: thomas DOT nichols AT mail DOT com (Thomas Nichols) Subject: docs for dlltool? 28 Nov 1997 22:20:17 -0800 Message-ID: <3.0.2.32.19971128224901.006a6f18.cygnus.gnu-win32@messagebox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: gnu-win32 AT cygnus DOT com Found it! In the mailing list archives for Feb 1995! Are these archives the best source of documentation for these tools? hanks, Regards, Tom. // ------------- archived message --------------------- // Received: from mailhost.ixos.de (HOST.50.22.ixos.de [149.235.50.22]) by cygnus.com (8.6.12/8.6.9) with SMTP id AAA00692 for ; Fri, 25 Aug 1995 00:08:15 -0700 From: Gunther Ebert Date: Fri, 25 Aug 95 09:08:06 +0200 Message-Id: <9508250708 DOT AA28213 AT mailhost DOT ixos DOT de> Received: by mailhost.ixos.de (5.65+/ixos-1.0.7) via Internet for cygnus.com id AA28213; Fri, 25 Aug 95 09:08:06 +0200 To: gnu-win32 AT cygnus DOT com Subject: Re: Building DLLs Sender: owner-gnu-win32 AT cygnus DOT com Precedence: bulk Reply-To: gnu-win32 AT cygnus DOT com Hi Karl, I don't know how to build a DLL using the win32-gcc but I can tell you how to use the dlltool utility. This is a tool like implib - it builds import libraries from DLLs. You must write a .def file with the following syntax: EXPORTS _MessageBoxA AT 16 _DialogBoxA AT 8 .... Below the EXPORTS statement you must specify all DLL functions you want to import. Take care that you use the names which the linker is expected (with underscores, ...). Then you can run dlltool. Please use the following command line parameters: dlltool -k -u -o -d The dlltool generates two .s files: -lib.s and -exp.s. Now you can compile the -lib.s file - and your import lib is createt. Gunther - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".