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

Linking Problem when using IMSL

yankagan
Beginner
556 Views
Hi

I am using intel visual fortran 11 64 bit with IMSLand visual studio 2008 in windows 7.

After installing IMSL i tried runnig the following simple code:


program Console3

USE AI_INT

IMPLICIT NONE

REAL VAL, X

X = -4.9

VAL = AI(X)

end program Console3

When building this file, I am receiving the following error: "Error 1 error LNK2019: unresolved external symbol S_AI referenced in function MAIN__ Console3.obj". If i compile the file i dont get any error.
It is clear to me that it isa linking problem but i dont see the reason for this, since i followed the instructions in http://software.intel.com/en-us/articles/installing-and-using-the-imsl-libraries/ and added all the imsl librariers to "librariers" and "includes" as explained there. The linkershould have the correct path.
What is S_AI?I am using AI and not S_AI and i dont see why the linker is searching for it.
I tried using "USE IMSL_LIBRARIES" instead of "AI_INT" but it doesnt help.
I also tried the solution at http://software.intel.com/en-us/articles/internal-compiler-error-when-using-imsl-modules-imsl_libraries-or-linear_operators-intel-64/, didnt help either.

Please help me solve the problem

Thanks

Yan

0 Kudos
3 Replies
Steven_L_Intel1
Employee
556 Views
You missed adding the following lines:

include 'link_fnl_static.h'
!DEC$ OBJCOMMENT LIB:'libiomp5md.lib'

0 Kudos
yankagan
Beginner
556 Views
Great. Thanks alot. Now it works !!

Now i have another wierd behavior:
When i write "use IMSL_LIBRARIES" instead of "use AI_INT" i get several warnings like this one:
"warning LNK4049: locally defined symbol MPIPRIV1 imported".
Should i be concerned ? Can i fix this ?

Thanks again
0 Kudos
Steven_L_Intel1
Employee
556 Views
No, you should not be concerned. No, you cannot fix it. The message can be suppressed with a liniker option if it annoys you.
0 Kudos
Reply