- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
RAND is in the Portability Library, so add (the misnamed) -vaxlib switch to your compile command.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Minor typo: -Vaxlib not -vaxlib
Martyn
Martyn
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page