回 帖 发 新 帖 刷新版面

主题:[讨论][求助]fortran找不到fnum

以下是我的程序:

program test
integer :: i
open (unit=10, status = "scratch")
i = fnum(10)
print *, i
close (10)
end program test

但是有问题.

[root@node]# ifort -c test00.f90 
[root@node]# ifort -o test test00.f90 
/tmp/ifortylNBxl.o: In function `MAIN__':
test00.f90:(.text+0x89): undefined reference to `fnum_'

不知道是哪里出的问题,哪位大仙了解?

回复列表 (共3个回复)

沙发

好像找到原因了,是因为GCC中没有fnum.c这个东西。

板凳

重新安装GCC之后发现问题依旧,还是会报同样的错误。大家有遇到过这样的问题吗?

3 楼

问题已经解决

我来回复

您尚未登录,请登录后再回复。点此登录或注册