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

question using IMSL fortran 90 with visual studio 2008 in window 7

Ranee_Thiagarajah
824 Views

Hi,
I use intel fortran professional 11.1. I call the routine "linds" from IMSL library in the following simple fortran 90 program. When I click build solution, I get the error message (given below).How do I fix this?
Thanks for any help.
Ranee

! Console2.f90

program Console2
use linds_int
implicit none
real:: f(3,3),g(3,3)
data f/1.0, -3.0,2.0,-3.0,10.0,-5.0,2.0,-5.0,6.0/
call linds(f,g)

print*,'g(1,1)=',g(1,1)
END PROGRAM console2






Build Log

Build started: Project: Console2, Configuration: Debug|x64

Output
Linking...
Creating temporary file "RSP1.rsp" with contents
[
 /OUT:"x64\\Debug\\Console2.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\\Program Files (x86)\\VNI\\imsl\\fnl600\\Intel64\\lib" /LIBPATH:"C:\\Program Files (x86)\\Intel\\Compiler\\11.1\\035\\lib\\intel64" /LIBPATH:"C:\\Program Files (x86)\\Intel\\Compiler\\11.1\\035\\mkl\\ia32\\lib" /LIBPATH:"C:\\Program Files (x86)\\Intel\\Compiler\\11.1\\035\\mkl\\ia64\\bin" /LIBPATH:"C:\\Program Files (x86)\\VNI\\imsl\\fnl600\\IA64\\lib" /LIBPATH:"C:\\Program Files (x86)\\VNI\\imsl\\fnl600\\Intel64\\include\\dll" /MANIFEST /MANIFESTFILE:"C:\\Users\\kthiaga\\Documents\\Visual Studio 2008\\Projects\\Console2\\Console2\\x64\\Debug\\Console2.exe.intermediate.manifest" /DEBUG /PDB:"C:\\Users\\kthiaga\\Documents\\Visual Studio 2008\\Projects\\Console2\\Console2\\x64\\Debug\\Console2.pdb" /SUBSYSTEM:CONSOLE /IMPLIB:"C:\\Users\\kthiaga\\Documents\\Visual Studio 2008\\Projects\\Console2\\Console2\\x64\\Debug\\Console2.lib" imsl.lib imslsuperlu.lib imslhpc_l.lib imsls_err.lib imslmpistub.lib mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib imslmkl_dll.lib mkl_intel_c_dll.lib mkl_intel_thread_dll.lib mkl_core_dll.lib libguide40.lib  "x64\\Debug\\Console2.obj"
]
Creating command line "Link @"C:\\Users\\kthiaga\\Documents\\Visual Studio 2008\\Projects\\Console2\\Console2\\x64\\Debug\\RSP1.rsp""

Link: executing 'link'
imslhpc_l.lib(l2cds.obj) : error LNK2019: unresolved external symbol SPOCON referenced in function L2CDS
imslhpc_l.lib(lftds.obj) : error LNK2019: unresolved external symbol SPOTRF referenced in function LFTDS
x64\\Debug\\Console2.exe : fatal error LNK1120: 2 unresolved externals


Console2 - 3 error(s), 0 warning(s)
0 Kudos
4 Replies
Steven_L_Intel1
Employee
824 Views
Remove all of the IMSL and MKL libraries from your linker options, including libguide40.lib.

Add after the PROGRAM statement:

include 'link_fnl_static.h'
!DEC$ OBJCOMMENT LIB:"libiomp5md.lib"
0 Kudos
Ranee_Thiagarajah
824 Views
Hi Steve,
If I remove all the IMSL and MKL libraries from linker-> input-> additional dependencies, and add include 'link_fnl_static.h' after the program statement then I get more error message:
Here is the error message:


1>------ Rebuild All started: Project: Console2, Configuration: Debug x64 ------

1>Deleting intermediate files and output files for project 'Console2', configuration 'Debug|x64'.

1>Compiling with Intel Visual Fortran 11.1.035 [Intel 64]...

1>Console2.f90

1>Linking...

1>imsls_err.lib(n1rgb.obj) : error LNK2019: unresolved external symbol __kmpc_global_thread_num referenced in function N1RGB

1>imsls_err.lib(e1lock.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num

1>imsls_err.lib(umach.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num

1>imsl.lib(iumag.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num

1>imsls_err.lib(e1init.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num

1>imsls_err.lib(e1inpl.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num

1>imsls_err.lib(e1ucs.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num

1>imsls_err.lib(e1prt.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num

1>imsls_err.lib(e1pop.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num

1>imsls_err.lib(n1rcd.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num

1>imsls_err.lib(e1str.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num

1>imsls_err.lib(e1stl.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num

1>imsls_err.lib(e1psh.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num

1>imsls_err.lib(e1sti.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num

1>imsls_err.lib(e1mes.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num

1>imsls_err.lib(n1rty.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num

1>imsls_err.lib(n1rgb.obj) : error LNK2001: unresolved external symbol __kmpc_threadprivate_cached

1>imsls_err.lib(umach.obj) : error LNK2001: unresolved external symbol __kmpc_threadprivate_cached

1>imsl.lib(iumag.obj) : error LNK2001: unresolved external symbol __kmpc_threadprivate_cached

1>imsls_err.lib(e1init.obj) : error LNK2001: unresolved external symbol __kmpc_threadprivate_cached

1>imsls_err.lib(e1inpl.obj) : error LNK2019: unresolved external symbol __kmpc_threadprivate_cached referenced in function E1INPL

1>imsls_err.lib(e1ucs.obj) : error LNK2001: unresolved external symbol __kmpc_threadprivate_cached

1>imsls_err.lib(e1prt.obj) : error LNK2001: unresolved external symbol __kmpc_threadprivate_cached

1>imsls_err.lib(e1pop.obj) : error LNK2001: unresolved external symbol __kmpc_threadprivate_cached

1>imsls_err.lib(n1rcd.obj) : error LNK2001: unresolved external symbol __kmpc_threadprivate_cached

1>imsls_err.lib(e1str.obj) : error LNK2001: unresolved external symbol __kmpc_threadprivate_cached

1>imsls_err.lib(e1stl.obj) : error LNK2001: unresolved external symbol __kmpc_threadprivate_cached

1>imsls_err.lib(e1psh.obj) : error LNK2001: unresolved external symbol __kmpc_threadprivate_cached

1>imsls_err.lib(e1sti.obj) : error LNK2001: unresolved external symbol __kmpc_threadprivate_cached

1>imsls_err.lib(e1mes.obj) : error LNK2001: unresolved external symbol __kmpc_threadprivate_cached

1>imsls_err.lib(n1rty.obj) : error LNK2001: unresolved external symbol __kmpc_threadprivate_cached

1>imsls_err.lib(e1lock.obj) : error LNK2019: unresolved external symbol __kmpc_critical referenced in function E1LOCK

1>imsls_err.lib(e1lock.obj) : error LNK2019: unresolved external symbol __kmpc_flush referenced in function E1LOCK

1>imsls_err.lib(e1lock.obj) : error LNK2019: unresolved external symbol __kmpc_end_critical referenced in function E1LOCK

1>imsls_err.lib(e1lock.obj) : error LNK2019: unresolved external symbol __kmpc_set_nest_lock referenced in function E1LOCK

1>imsls_err.lib(e1lock.obj) : error LNK2019: unresolved external symbol omp_set_nest_lock referenced in function E1LOCK

1>imsls_err.lib(e1lock.obj) : error LNK2019: unresolved external symbol __kmpc_unset_nest_lock referenced in function E1LOCK

1>imsls_err.lib(e1lock.obj) : error LNK2019: unresolved external symbol omp_unset_nest_lock referenced in function E1LOCK

1>imsls_err.lib(e1lock.obj) : error LNK2019: unresolved external symbol __kmpc_init_nest_lock referenced in function E1LOCK

1>imsls_err.lib(e1lock.obj) : error LNK2019: unresolved external symbol omp_init_nest_lock referenced in function E1LOCK

1>x64\Debug\Console2.exe : fatal error LNK1120: 11 unresolved externals

1>

1>Build log written to "file://C:\Users\kthiaga\Documents\Visual Studio 2008\Projects\Console2\Console2\x64\Debug\BuildLog.htm"

1>Console2 - 41 error(s), 0 warning(s)

========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

0 Kudos
Steven_L_Intel1
Employee
824 Views
You forgot to add the second line I gave.
0 Kudos
Ranee_Thiagarajah
824 Views
I thought it was a comment statement. I added that line. It works great.
Thanks a million!!!!
Ranee
0 Kudos
Reply