IVF中编译错误 error #6404: [BESJN]
error #6404: This name does not have a type, and must have an explicit type. besjn是贝塞尔函数,属于库函数,为何出现这种问题,如何解决?time()函数也是这样。是否参数给得不对?尤其是注意类型是否符合语法要求。 https://gcc.gnu.org/onlinedocs/gfortran/BESSEL_005fJN.html#BESSEL_005fJN
范例,估计少掉下划线吧。。。
program test_besjn
real(8) :: x = 1.0_8
x = bessel_jn(5,x)
end program test_besjn 楼主用的是不是IMSL里的,但并没有use IMSL?并且您还要确定一下您的IVF是带IMSL版本的么?
页:
[1]