Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29001 Discussions

How to get lib file from DLL, main program,obj missing

avinash_roshan
Beginner
418 Views
How to create a fortran lib file when only fortran dll file is available. Main program and obj file is not available.
0 Kudos
2 Replies
anthonyrichards
New Contributor III
418 Views

If you want to know what symbols are being exported by the DLL, you can find out using

DUMPBIN /EXPORTS YOUR.DLL

issuing the command from the directory where YOUR.DLL is located. However, If you have no ideawhat the routine and function types and arguments are in the DLL, this information will be of limited use if you want to interface to the exported routines (unless the DLL was compiled using C++ compiler and 'mangled names' are generated, in which case you can theoretically establish a lot about the calling convention, arguments and types by a process of 'demangling' the names)

0 Kudos
Steven_L_Intel1
Employee
418 Views
Following Anthony's advice, if you get the list of the entry points you can create a dummy DLL project that contains empty routines of the same names with DLLEXPORT directives. When you build this project, which must have as its DLL name the same as the DLL you want to use, it will build a library file for you and you can then use that in your real project.

Another option is to use dynamic loading of the DLL using the LoadLibrary and GetProcAddress Win32 API routines.
0 Kudos
Reply