blas.f90 をインクルードして、コンパイルしても、
ifort -I /opt/intel/Compiler/composer_xe_2015.1.133/mkl/include/blas.f90 -mkl -L /opt/intel/Compiler/composer_xe_2015.1.133/mkl test.f90
/tmp/ifortMd928T.o: In function MAIN__': test.f90:(.text+0x6f): undefined reference to
dznrm2_f95_'
make: *** [test] Error 1
と出てコンパイルできません。
blas.f90 はインターフェースだけのようなので、本体を入れないといけないのかもしれませんが。。。
test.f90 の中身は、
program main
use blas95
implicit none
integer, parameter :: dp = kind(0d0)
complex(dp), dimension(100) :: cpsi
real(dp) :: dnorm
dnorm = 100d0
dnorm = nrm2(cpsi)
end program main
nrm2 が指しているところの、dznrm2 がコンパイルに含まれていないのかと思いますが、どのように含めるのか分かりません。
よろしくお願いします。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。