Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

dasin statement

martin_muehlentien
1,107 Views
i have a programme code, which uses the dasin-statement for calculating pi.

pi=2.*dasin(1.)

after compiling it by ivf8 i get following messages:

traje.obj : error LNK2001: nichtaufgeloestes externes Symbol _DASIN

traje.exe : fatal error LNK1120 1 unaufgeloeste externe verweise

does there exist a new statement for dasin? how do i have to change?


martin
0 Kudos
2 Replies
Steven_L_Intel1
Employee
1,107 Views
DASIN is the double-precision "specific" function name, and you are calling it with a single-precision argument. Assuming that variable pi is declared as double precision (real(8)), you probably want:
pi = 2.0D0 * asin(1.0D0)
I recommend using the generic asin rather than the specific dasin.
0 Kudos
martin_muehlentien
1,107 Views
i will use the generic asin.

THX to Steve!
0 Kudos
Reply