Pelles C forum

C language => User contributions => Topic started by: Vortex on April 18, 2010, 05:06:09 PM

Title: Module definition file to MS COFF import library converter
Post by: Vortex on April 18, 2010, 05:06:09 PM
def2lib is a tool to create MS COFF import libraries from module definition files. The tool has also the capacity to generate libraries with undecorated function names.

QuoteModule definition file to MS COFF import library converter
Version 1.1 by Vortex

Usage    : def2lib deffile.def [optional]
Optional : -nod  no decoration in exported symbols

A typical def file should have the following format and all the symbols should be enclosed between double quotes:

kernel32.def

LIBRARY kernel32
EXPORTS
"_ActivateActCtx@8"
"_AddAtomA@4"
"_AddAtomW@4"
"_AddConsoleAliasA@12"


To create kernel32.lib from kernel32.def:

def2lib.exe kernel32.def

http://vortex.masmcode.com/files/def2lib11.zip
Title: Re: Module definition file to MS COFF import library converter
Post by: Vortex on March 10, 2013, 11:07:31 AM
Version 1.2 :

- Corrected timestamps in the IMAGE_ARCHIVE_MEMBER_HEADER and IMPORT_OBJECT_HEADER structures.

- Added the option -e to support archive member names with the .exe extension ( ntvdm.exe )

http://vortex.masmcode.com/files/def2lib12.zip