我使用Fortran来估计主权风险的概率;因此,我编写了我的程序,并以以下形式调用mkl_vsl:
:
:
include 'mkl_vsl.fi'
:
:
USE MKL_VSL_TYPE
USE MKL_VSL
:
:代码块GNU fortran编译器向我发送错误消息:
||=== Build: Debug in thesis (compiler: GNU Fortran Compiler) ===|
C:\___\___\____\___\___\mod_nonlinear_solver.f90|6|Error: Can't open included file 'mkl_vsl.fi'|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|发布于 2020-11-13 21:41:51
您需要指定gfortran搜索包含文件的目录:gfortran-doc。我猜Codeblock中的编译步骤没有设置该设置
$ gfortran -I$(MKLROOT)/include其中MKLROOT变量类似于
$ echo $MKLROOT
/opt/exports/intel20/compilers_and_libraries_2020.1.217/linux/mklhttps://stackoverflow.com/questions/64821049
复制相似问题