LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1236|回复: 0

请兄弟们帮忙:)关于fortran中rand()函数调用的问题?

[复制链接]
发表于 2005-7-31 10:23:56 | 显示全部楼层 |阅读模式
我查了许多资料说rand()是fortran的内建的函数,但是在最新的fedora core4下面利用gfotran编译出现如下的错误,由于刚开始使用linux不是很熟悉,请问是不是要连接什么库阿,我使用的是如下命令:
[root@localhost test1]# gfortran strinv.f -o str
/tmp/cctYTwVg.o(.text+0xbe3d): In function `ran0_':
strinv.f: undefined reference to `rand_'
/tmp/cctYTwVg.o(.text+0xbe73):strinv.f: undefined reference to `rand_'
/tmp/cctYTwVg.o(.text+0xbe9c):strinv.f: undefined reference to `rand_'
/tmp/cctYTwVg.o(.text+0xbf1c):strinv.f: undefined reference to `rand_'
小弟要和老板交差,请各位帮忙了:)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表