Quantcast
Channel: Intel® Software - Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2746

generic interface from external procedures

$
0
0

I am having trouble creating a generic interface.  I have a module that has something like this:

interface do_something
   module procedure do_something_real4
   module procedure do_something_char
end interface do_something

In my source directory, I have separate source files for subroutines do_something_real and do_something_char.  When I compile my library, I get the error #7950: Procedure name in MODULE PROCEDURE statement must be the name of accessible module procedure.

I have tried creating interfaces for these subroutines in the same module source, much like:

interface
   subroutine do_something_real4
   ...
   end subroutine do_something_real4
   subroutine do_something_char
   ...
   end subroutine do_something_char
end interface

but I still get compiler issues.  Any help is greatly appreciated.

 


Viewing all articles
Browse latest Browse all 2746

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>