I created the .def file below :
LIBRARY test
EXPORTS
"func1"
"_func2"
"_anotherfunc@4"
Running polib.exe V7.00.0 :
polib /DEF:test.def /OUT:test.lib /MACHINE:x86
Podump does not list the exported functions :
podump /EXPORTS test.lib
Dump of test.lib
File type: LIB
SUMMARY
14 .idata$2
14 .idata$3
4 .idata$4
4 .idata$5
A .idata$6
Trying the same with Microsoft's dumpbin tool :
\masm32\bin\dumpbin.exe /EXPORTS test.lib
.
.
Dump of file test.lib
File Type: LIBRARY
Exports
ordinal name
_anotherfunc@4
__func2
_func1
Summary
14 .idata$2
14 .idata$3
4 .idata$4
4 .idata$5
A .idata$6