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

Unresolved external warning

jeraldlavassar
Beginner
751 Views
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!
0 Kudos
1 Reply
james1
Beginner
751 Views
Make sure your argument to DCOS is a double precision real variable and that should resolve the error.

James
0 Kudos
Reply