horrision 发表于 2015-11-23 22:15:30

IVF中编译错误 error #6404: [BESJN]

error #6404: This name does not have a type, and must have an explicit type. besjn是贝塞尔函数,属于库函数,为何出现这种问题,如何解决?time()函数也是这样。



fcode 发表于 2015-11-23 22:20:02

是否参数给得不对?尤其是注意类型是否符合语法要求。

pasuka 发表于 2015-11-23 22:25:22

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

好小爱新 发表于 2015-12-9 17:25:30

楼主用的是不是IMSL里的,但并没有use IMSL?并且您还要确定一下您的IVF是带IMSL版本的么?
页: [1]
查看完整版本: IVF中编译错误 error #6404: [BESJN]