Here is a simple program
PROGRAM MAIN
implicit none
integer, PARAMETER :: N=10
real*8 :: A(N)
real*8 :: x=0.1D0
integer :: i=1
Do i=1,N
A(i)=i
end do
call dscal(N,x, A, 1)
x=dasum(N,A,1)
END PROGRAM MAIN
I compile with the command
gfortran test.f90 -o test -O1 -I /usr/include/ -L /usr/lib -lblas
While I have no problem calling the subroutine dscal
I get the following error for the function dasum
test.f90:15.2: x=dasum(N,A,1) 1 Error: Function 'dasum' at (1) has no IMPLICIT type
Should I include a certain file to define the BLAS functions?