Random function

Random function

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

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 ?


3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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


Steve - Intel Developer Support

Minor typo: -Vaxlib not -vaxlib


Leave a Comment

Please sign in to add a comment. Not a member? Join today