wget https://github.com/zeromq/libzmq/releases/download/v4.3.1/zeromq-4.3.1.tar.gz
tar zxvf zeromq-4.3.1.tar.gz
cd zeromq-4.3.1/
./configure
make -j 8
sudo make install
%compiler: gfortran-9module m_divisor
implicitnonecontainspureintegerfunction ifun(n)
integer, intent(in) :: n
integer :: k(n)
k =1
ifun =sum(k)
end function ifun
end module m_divisor
program test
use m_divisor
implicitnoneprint*, ifun(10)
stop'normal end'end program test
10
STOP normal end
%compiler: gfortran-9module m_divisor
implicitnonecontainspureelementalintegerfunction ifun(n)
integer, intent(in) :: n
integer :: k(n)
k =1
ifun =sum(k)
end function ifun
end module m_divisor
program test
use m_divisor
implicitnoneprint*, ifun(10)
stop'normal end'end program test
/mnt/d/ubuntu18/binder/modern_fortran/examples/temp/tmpih_fplg0.f90:6:21:
6 | integer :: k(n)
| 1
Error: Dummy argument ‘n’ not allowed in expression at (1)
/mnt/d/ubuntu18/binder/modern_fortran/examples/temp/tmpih_fplg0.f90:6:21:
6 | integer :: k(n)
| 1
Error: Dummy argument ‘n’ not allowed in expression at (1)
/mnt/d/ubuntu18/binder/modern_fortran/examples/temp/tmpih_fplg0.f90:13:8:
13 | use m_divisor
| 1
Fatal Error: Cannot open module file ‘m_divisor.mod’ for reading at (1): No such file or directory
compilation terminated.
[gfort kernel] fortran exited with code 1, the executable will not be executed