This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

docs for dlltool?


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 <gnu-win32@cygnus.com>;
Fri, 25 Aug 1995 00:08:15 -0700
From: Gunther Ebert <gunther.ebert@munich.ixos.de>
Date: Fri, 25 Aug 95 09:08:06 +0200
Message-Id: <9508250708.AA28213@mailhost.ixos.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@cygnus.com
Subject: Re:  Building DLLs
Sender: owner-gnu-win32@cygnus.com
Precedence: bulk
Reply-To: gnu-win32@cygnus.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@16
_DialogBoxA@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 <Library name without ".DLL"> -d <name of .def file>

The dlltool generates two .s files: <library>-lib.s and <library>-exp.s.
Now you can compile the <library>-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@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]