Random function

Random function

I have a problem with the random function...
In one subroutine call "ranger" I have this kind of code :

REAL RAND
XALEAT=RAND()
The compilation of the subroutine shows no problem.

I have no problem with F77 but when I try to compile the main with ifc linked to a library I have :
In function `ranger_':
ranger.o(.text+0x12): undefined reference to `rand_'

What do you think ?

Renaud

3 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

RAND is in the Portability Library, so add (the misnamed) -vaxlib switch to your compile command.

Steve

Steve - Intel Developer Support

Minor typo: -Vaxlib not -vaxlib

Martyn

发表评论

登录添加评论。还不是成员?立即加入