Post date: Oct 06, 2017 8:38:20 AM
dumpbin is a utility that is found in c:\program files (x86)\Microsoft Visual Studio 14.0\VC\bin\... in folders that have machine names. I used the x64 version and that worked just fine. After successful completion of
dumpbin /EXPORTS yourfile.dll > yourfile.exports
create a text file named yourfile.def. Cut and paste and delete so you have all the names of the functions you want in the yourfile.def. You will have to remove all the indexes and addresses ahead of the function name. At the end of which you will have only a single column of function names in the .def file. Add a EXPORTS at the top of the file. The link says to execute vcvars32.bat. I did vcvarsall.bat. I guess this is for the 64-bit version.
Then use the Microsoft Library manager lib which is also somewhere in the System (mine was already in the default path). I had to use
lib /machine:x64 /def:yourfile.def /out:yourfile.lib
Some extra info. The Windows dll file is the equivalent of the Linux so file. And if you are doing Python, it is the same as the .pyd file I think
http://effbot.org/pyfaq/is-a-pyd-file-the-same-as-a-dll.htm.