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

compaq visual fortran linker error when using IMSL

shivkumaris
Beginner
758 Views
this was not the first time i used the imsl libraries with the visual fortran.
the compilation was performed properly but the linker gave the following errors
error LNK2001: unresolved external symbol _RNSET@4
shufflecross.obj : error LNK2001: unresolved external symbol _RNNOA@8
Debug/crossshuffled.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
can anybody give me any suggestions?
0 Kudos
4 Replies
richardduncan
Beginner
758 Views
Since you have been successful at using IMSL with VF in the past, is it thensafe to assumethe obvious? Namely,

1.a 'use IMSL' or equivalent statement has been used in the appropriate position of the code and

2.the individual library routines RNSET, etc.,have not been declared with the'external' attribute?

If these are OK, then do you have an example of another program with IMSL routines that does compile and link successfully using VF?

Regards,

Richard

0 Kudos
shivkumaris
Beginner
758 Views
yes i did include
USE NUMERICAL_LIBRARIES at the start of the program as well as i also delared the used rotuines as external attributes.i also have other programs taht work fine by doing the same thing.
do you think there could be any other reason for it show that kind of an error?
0 Kudos
shivkumaris
Beginner
758 Views
hi there,
i also did get the following error when i used the IMSL the way i always use it.

Error: The attributes of this name conflict with those made accessible by a USE statement. [RNNOA]
EXTERNAL RNNOA, RNSET
-------------------------^
please advice
0 Kudos
Steven_L_Intel1
Employee
758 Views
You're not doing it the way you always have in the past - you added the USE. If you do that, remove the EXTERNALs.
0 Kudos
Reply