|
|
我查了许多资料说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_'
小弟要和老板交差,请各位帮忙了:) |
|