With regard to this
https://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/675652
I went back to 16.0.4 which gave me my dynamic library .................. but the code below failed with a segfault, while 17 is giving the correct results:
Module mod_t1 Implicit None Type t1 Private Integer :: a=8 contains Procedure, Pass, Public :: getA => FunGetA End type t1 Private FunGetA contains Function FunGetA(this) Class(t1), Intent(In) :: this Real, Allocatable :: FunGetA FunGetA=this%a End Function FunGetA End Module mod_t1 Program Test use mod_t1 Type(t1) :: b write(*,*) b%getA() End Program Test
Thus, I either rewrite heaps of allocatable functions ................ or I forget about getting a dynamically linked library.