Undefined reference to a function in a module
问题 I was going through all the other threads about undefined reference and I was unable to figure out why this piece of codes is not working. I am basically trying to run a function from a module into a subroutine in the main program. But I keep getting an error Main: program main use m1 implicit none integer, dimension(:,:), allocatable :: A,AFun integer :: n,i,j print *, "enter value for n" read *, n do i=1,n do j=1,n A(i,j)=i**2-j**3 end do end do print *, "Matrix A: " call prMat(A,n) call