Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Link an example of Lapack

Intel_C_Intel
Employee
799 Views
I tried to compile and linkzgetrsx.f in the lapack example. When I used
link zgetrsx.obj mkl_s.lib
there was an error message:
zgetrsx.obj : error LNK2019: unresolved external symbol _X04DBF referenced in function _MAIN__
zgetrsx.exe : fatal error LNK1120: 1 unresolved externals
Do you know what's wrong?

Message Edited by myuan@syr.edu on 01-09-2005 09:04 PM

0 Kudos
2 Replies
Intel_C_Intel
Employee
799 Views
 
0 Kudos
Intel_C_Intel
Employee
799 Views
There is a library of support functions which are needed for the examples. This can be found in /examples/lapack/lib. However, we have simplified the building of the examples with a make file. I built this example for Windows so my example below is based on that but it isn't much different to do this for Linux. Here is a copy of my build of the example for dgetrf: C:mklMKL72exampleslapack>nmake lib32 function=dgetrf+ Microsoft Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. set lib=....ia32lib;lib;%lib% DGETRF Example Program Results Details of factorization 1 2 3 4 1 5.2500 -2.9500 -0.9500 -3.8000 2 0.3429 3.8914 2.3757 0.4129 3 0.3010 -0.4631 -1.5139 0.2948 4 -0.2114 -0.3299 0.0047 0.1314 IPIV 2 2 3 4 Hope this helps. Bruce
0 Kudos
Reply