Fortran 编译提示 Error:This USE statement is not positioned correctly within the scoping unit.
Fortran编译环境VS2017+Intel Parall XE 2018已完全足够,可以不用安装IMSL7.0。
报错原因在于Fortran77固定格式中规定use numerical_libraries必须在IMPLICIT 语句之前。
否则,会提示标题所示错误。
PROGRAM MAIN
use numerical_libraries
include 'link_fnl_shared.h'
PARAMETER (NEPS = 4)
IMPLICIT REAL*8(a-h,o-z)
COMPLEX*16 DMSres,s21
...
STOP
END
总结:查找这类问题,需翻墙到外网,多使用谷歌搜索