If you use .def files (Module Definition File) dont forget to include it in the project properties. Otherwise, it is understood that it does not export anything. Therefore, it wont create the .lib file.