Module definition files (.def) linker with export information, attributes and other program information are interconnected. The .def file is most useful when creating a DLL. Because there are linker options that can be used instead of module definitions for operators, .def files are usually not necessary. You can also use __declspec (dllexport) as a way to specify exported functions.
http://msdn.microsoft.com/en-us/library/28d6s79h%28VS.80%29.aspx
I was wondering if we should choose .def ? or dllexport ?
source
share