Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

use a Module from a dll

Schwandt__Olaf
Beginner
97 Views

Hi Steve, hi all,

 

another try:

is it possible to use a Module, which is located inside a dll? And if yes, how?

 

greetings

 

Olaf

0 Kudos
2 Replies
mecej4
Black Belt
97 Views

Information regarding the variables, types and interfaces to procedures is in the .MOD file generated when the source code of the module is compiled. This information is not present in the DLL, and most compilers do not try to read the contents of a DLL. A DLL contains executable code and sections for storing variables -- information that is used at run time.

As examples, look at the MKL or IMSL libraries. In order to be able to use routines in their libraries using F90+ interfaces, you need the MOD files in addtion to the LIB files. Without having the MOD files, you are restricted to calling routines that have a F77 (i.e., implicit) interface.

Similarly, C programmers need the header files for various libraries in addition to the libraries.

Schwandt__Olaf
Beginner
97 Views

hi mecej4,

 

thanks for it.

 

Olaf

Reply