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
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
链接已复制
2 回复数
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.
