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

Use of the .lib file generated by a Fortran DLL project

Jon_D
New Contributor II
585 Views
Hello,

I created a Fortran DLL to use with a Visual Basic project. Now I would like to use the same Fortran DLL in a Fortran console application. The DLL project creates a .lib file. I was wondering if I can use this .lib file and link it to my console application as if it was generated from a static library project. In other words, do the .lib files created through a DLL project and a static library project have the same format?

Thanks for any help,
Jon
0 Kudos
1 Reply
Steven_L_Intel1
Employee
585 Views
They are used the same way, though the contents differ. The one from a DLL build is an "export" (or variously "import") library that provides the linker with information on the entry points in the DLL and the DLL name - but not the actual code.
0 Kudos
Reply