- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi, I have a problem with the random number generator _DRNUN that I used as
call drnun (NR, R)
where NR - Number of random numbers to generate. (Input)
R - Vector of length NR containing the random uniform (0,1)deviates. (Output).
It is fine to compile the code in Compaq visual Fortran. However, it gives me error message as "error LNK2019: unresolved external symbol _DRNUN referenced in function XXX". Could anyone please tell me what is wrong and how should I correct it?
Thanks for your time and I appreciate your help.
call drnun (NR, R)
where NR - Number of random numbers to generate. (Input)
R - Vector of length NR containing the random uniform (0,1)deviates. (Output).
It is fine to compile the code in Compaq visual Fortran. However, it gives me error message as "error LNK2019: unresolved external symbol _DRNUN referenced in function XXX". Could anyone please tell me what is wrong and how should I correct it?
Thanks for your time and I appreciate your help.
Link kopiert
8 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
DRNUN is an IMSL routine, and therefore you have to tell either the compiler or the linker that you are using IMSL.
Method 1:
Add the line:
USE NUMERICAL_LIBRARIES
right after the PROGRAM, SUBROUTINE or FUNCTION line of the code that calls DRNUN
Method 2:
Select Project..Add to Project..Files. Files of type: Library Files (.LIB). Browse to the Program FilesMicrosoft Visual StudioDF98IMSLLIB folder. Select all the .LIB files and click OK.
Steve
Method 1:
Add the line:
USE NUMERICAL_LIBRARIES
right after the PROGRAM, SUBROUTINE or FUNCTION line of the code that calls DRNUN
Method 2:
Select Project..Add to Project..Files. Files of type: Library Files (.LIB). Browse to the Program FilesMicrosoft Visual StudioDF98IMSLLIB folder. Select all the .LIB files and click OK.
Steve
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Thanks, Steve.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Quoting - Steve Lionel (Intel)
DRNUN is an IMSL routine, and therefore you have to tell either the compiler or the linker that you are using IMSL.
Method 1:
Add the line:
USE NUMERICAL_LIBRARIES
right after the PROGRAM, SUBROUTINE or FUNCTION line of the code that calls DRNUN
Method 2:
Select Project..Add to Project..Files. Files of type: Library Files (.LIB). Browse to the Program FilesMicrosoft Visual StudioDF98IMSLLIB folder. Select all the .LIB files and click OK.
Steve
Method 1:
Add the line:
USE NUMERICAL_LIBRARIES
right after the PROGRAM, SUBROUTINE or FUNCTION line of the code that calls DRNUN
Method 2:
Select Project..Add to Project..Files. Files of type: Library Files (.LIB). Browse to the Program FilesMicrosoft Visual StudioDF98IMSLLIB folder. Select all the .LIB files and click OK.
Steve
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Quoting - crkkos
I tried the USE NUMERICAL LIBRARIES and couldnt get the function to work. I am using susedev1 and ifort 11
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Suse 10 that is
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Intel does not offer a package with IMSL on Linux. You can buy IMSL for Linux from Visual Numerics.
The Intel Math Kernel Library, included with Intel Fortran Professional Edition, has many random number generators. Otherwise, consider using the Fortran intrinsic RANDOM_NUMBER.
The Intel Math Kernel Library, included with Intel Fortran Professional Edition, has many random number generators. Otherwise, consider using the Fortran intrinsic RANDOM_NUMBER.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Quoting - Peter
Did you try to use the method 2 ??

Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite