You’re going to need Microsoft Visual C++ 2010 Express (or any other source of MSVC command line tools), and your DLL.
Steps:
dumpbin /EXPORTS yourfile.dll > yourfile.exports- Paste the names of the needed functions from
yourfile.exportsinto a newyourfile.deffile. Add a line with the wordEXPORTSat the top of this file. - Run the following commands from
VC\bindirectory (the one wherelib.exeand other compile tools reside).
vcvars32.bat
lib /def:yourfile.def /out:yourfile.lib
or for x64 builds
lib /def:yourfile.def /machine:x64 /out:yourfile64.lib
You should get two files generated: yourfile.lib and yourfile.exp