- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i will use the generic asin.
THX to Steve!
THX to Steve!

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