Sometimes you need a .lib file and all you have is a list of function names (.def). You can do this using the lib.exe utility that comes with MS Developer Studio. First you need to set Dev Studio's command line variables using vcvars32.bat. Then run: