- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the task of compiling a legacy fortran program. Yet, I am poorly versed in Fortran. Here is the problem. I have created a console application with the main program and additional subroutines added as files. I compile the program and get many warnings of the following type: "Unresolved external symbol _DCOS@4 Warning - This argument's data type is incompatible with this intrinsic procedure - assumed procedure EXTERNAL [ANG]" The offending line of code is:
CS=DCOS(ANG(I)) The warning places a caret symbol below the ANG.
In the linking operation the program finds numerous errors of the following type:
"LNK2001: unresolved external symbol _DCOS@4"
Will my problems go away if I restore compatibility with the intrinsic procedure? Then how does one go about that?
I would appreciate any help.
Thanks!
CS=DCOS(ANG(I)) The warning places a caret symbol below the ANG.
In the linking operation the program finds numerous errors of the following type:
"LNK2001: unresolved external symbol _DCOS@4"
Will my problems go away if I restore compatibility with the intrinsic procedure? Then how does one go about that?
I would appreciate any help.
Thanks!
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Make sure your argument to DCOS is a double precision real variable and that should resolve the error.
James
James

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