1、dumpbin.exe /exports "%DLL_PATH%\xxx.dll" > "%DLL_PATH%\xxx.def"
2、修改def为如下样式
LIBRARY xxx.dll
EXPORTS
export_fun_1
export_fun_2
export_fun_3
...
3、lib.exe /def:"%DLL_PATH%\xxx.def" /out:"%DLL_PATH%\xxx.lib" /machine:x86