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

Generic interfaces, modules and libraries

OP1
New Contributor III
298 Views

Assume that I create a library L which contains the subroutines S1 and S2, and the modules ML and MS. MS is a module which contains a generic interface definition (S) for the two subroutines S1 and S2. ML is the main module in thelibrary, and refers to the MS module (through USE MS statement).

Now, is it possible to access in my main program either S1 or S2 (by calling the generic subroutine S) by linking the library L and refering to ML (through USE ML statement)? I would expect so (since MLrefers toMS which contains the generic interface). Yet it seems it doesn't work.

Am I missing something here?

Thanks a lot!

0 Kudos
0 Replies
Reply