<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error linking with Lapack in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-linking-with-Lapack/m-p/960445#M15869</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I am trying to run an example that solves a set of linear equations using&amp;nbsp;SGESV, but during linking I get the following error messages:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;1&amp;gt;mkl_intel_c.lib(_sgesv.obj) : error LNK2019: unresolved external symbol _mkl_serv_set_progress referenced in function _sgesv&lt;BR /&gt;
	1&amp;gt;mkl_intel_c.lib(_sgesv.obj) : error LNK2019: unresolved external symbol _mkl_serv_setxer referenced in function _sgesv&lt;BR /&gt;
	1&amp;gt;mkl_intel_c.lib(_sgesv.obj) : error LNK2019: unresolved external symbol _mkl_lapack_sgesv referenced in function _sgesv&lt;BR /&gt;
	1&amp;gt;mkl_intel_c.lib(_misc_mkl_progress_iface_u.obj) : error LNK2019: unresolved external symbol _mkl_serv_default_progress referenced in function _MKL_PROGRESS&lt;BR /&gt;
	1&amp;gt;mkl_intel_c.lib(_misc_mkl_xerbla_iface_u.obj) : error LNK2019: unresolved external symbol _mkl_serv_default_xerbla referenced in function _XERBLA&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
    <pubDate>Wed, 26 Mar 2014 12:19:22 GMT</pubDate>
    <dc:creator>Pedersen__M</dc:creator>
    <dc:date>2014-03-26T12:19:22Z</dc:date>
    <item>
      <title>Error linking with Lapack</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-linking-with-Lapack/m-p/960445#M15869</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I am trying to run an example that solves a set of linear equations using&amp;nbsp;SGESV, but during linking I get the following error messages:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;1&amp;gt;mkl_intel_c.lib(_sgesv.obj) : error LNK2019: unresolved external symbol _mkl_serv_set_progress referenced in function _sgesv&lt;BR /&gt;
	1&amp;gt;mkl_intel_c.lib(_sgesv.obj) : error LNK2019: unresolved external symbol _mkl_serv_setxer referenced in function _sgesv&lt;BR /&gt;
	1&amp;gt;mkl_intel_c.lib(_sgesv.obj) : error LNK2019: unresolved external symbol _mkl_lapack_sgesv referenced in function _sgesv&lt;BR /&gt;
	1&amp;gt;mkl_intel_c.lib(_misc_mkl_progress_iface_u.obj) : error LNK2019: unresolved external symbol _mkl_serv_default_progress referenced in function _MKL_PROGRESS&lt;BR /&gt;
	1&amp;gt;mkl_intel_c.lib(_misc_mkl_xerbla_iface_u.obj) : error LNK2019: unresolved external symbol _mkl_serv_default_xerbla referenced in function _XERBLA&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 12:19:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-linking-with-Lapack/m-p/960445#M15869</guid>
      <dc:creator>Pedersen__M</dc:creator>
      <dc:date>2014-03-26T12:19:22Z</dc:date>
    </item>
    <item>
      <title>Since you don't show us your</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-linking-with-Lapack/m-p/960446#M15870</link>
      <description>&lt;P&gt;Since you don't show us your link command or build log, I'll start by guessing you used something other than the /Qmkl option, but didn't follow the advice at&amp;nbsp;http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 12:24:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-linking-with-Lapack/m-p/960446#M15870</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-03-26T12:24:57Z</dc:date>
    </item>
    <item>
      <title>I am using Visual studio 2010</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-linking-with-Lapack/m-p/960447#M15871</link>
      <description>&lt;P&gt;I am using Visual studio 2010.&lt;/P&gt;

&lt;P&gt;Link command:&lt;/P&gt;

&lt;P&gt;/OUT:"Debug\Ax_b_wrap.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program Files (x86)\Intel\Composer XE 2011 SP1\mkl\lib\intel64" /MANIFEST /MANIFESTFILE:"C:\mmpe\programming\Fortran\Ax_b_wrap\Ax_b_wrap\Debug\Ax_b_wrap.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\mmpe\programming\Fortran\Ax_b_wrap\Ax_b_wrap\Debug\Ax_b_wrap.pdb" /SUBSYSTEM:CONSOLE /IMPLIB:"C:\mmpe\programming\Fortran\Ax_b_wrap\Ax_b_wrap\Debug\Ax_b_wrap.lib" &amp;nbsp;mkl_blas95_ilp64.lib mkl_lapack95_ilp64.lib mkl_intel_ilp64.lib mkl_core.lib mkl_intel_thread.lib&lt;/P&gt;

&lt;P&gt;build log:&lt;/P&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;
	&lt;TABLE cellpadding="0" cellspacing="0" style="font-family: 'Times New Roman';" width="*"&gt;
		&lt;TBODY&gt;
			&lt;TR&gt;
				&lt;TD width="*"&gt;
					&lt;PRE&gt;
Linking...
Link /OUT:"Debug\Ax_b_wrap.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program Files (x86)\Intel\Composer XE 2011 SP1\mkl\lib\intel64" /MANIFEST /MANIFESTFILE:"C:\mmpe\programming\Fortran\Ax_b_wrap\Ax_b_wrap\Debug\Ax_b_wrap.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\mmpe\programming\Fortran\Ax_b_wrap\Ax_b_wrap\Debug\Ax_b_wrap.pdb" /SUBSYSTEM:CONSOLE /IMPLIB:"C:\mmpe\programming\Fortran\Ax_b_wrap\Ax_b_wrap\Debug\Ax_b_wrap.lib"  mkl_blas95_ilp64.lib mkl_lapack95_ilp64.lib mkl_intel_ilp64.lib mkl_core.lib mkl_intel_thread.lib "Debug\test.obj"
Link: executing 'link'
mkl_intel_c.lib(_sgesv.obj) : error LNK2019: unresolved external symbol _mkl_serv_set_progress referenced in function _sgesv
mkl_intel_c.lib(_sgesv.obj) : error LNK2019: unresolved external symbol _mkl_serv_setxer referenced in function _sgesv
mkl_intel_c.lib(_sgesv.obj) : error LNK2019: unresolved external symbol _mkl_lapack_sgesv referenced in function _sgesv
mkl_intel_c.lib(_misc_mkl_progress_iface_u.obj) : error LNK2019: unresolved external symbol _mkl_serv_default_progress referenced in function _MKL_PROGRESS
mkl_intel_c.lib(_misc_mkl_xerbla_iface_u.obj) : error LNK2019: unresolved external symbol _mkl_serv_default_xerbla referenced in function _XERBLA
Debug\Ax_b_wrap.exe : fatal error LNK1120: 5 unresolved externals


Ax_b_wrap - 6 error(s), 0 warning(s)&lt;/PRE&gt;
				&lt;/TD&gt;
			&lt;/TR&gt;
		&lt;/TBODY&gt;
	&lt;/TABLE&gt;
&lt;/DIV&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 12:33:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-linking-with-Lapack/m-p/960447#M15871</guid>
      <dc:creator>Pedersen__M</dc:creator>
      <dc:date>2014-03-26T12:33:27Z</dc:date>
    </item>
    <item>
      <title>The link command appears to</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-linking-with-Lapack/m-p/960448#M15872</link>
      <description>&lt;P&gt;The link command appears to match the recommendation. &amp;nbsp;Does your setup for the USE F95_LAPACK match the compile instructions with &amp;nbsp;/module specified?&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;/integer-size:64 /Qopenmp /module:%MKLROOT%/include/intel64/ilp64 -I%MKLROOT%/include&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I don't find any reference to mkl_serv_setxer in the mkl\lib\intel64 so I can't exclude references coming from a different variety of MKL.&lt;/P&gt;

&lt;P&gt;MKLROOT appeared to be expanded correctly in your link step. integer-size or the like would be needed if you have default kind integers in your MKL calls, but I don't expect that to be implicated in your error report.&lt;/P&gt;

&lt;P&gt;I assume your .obj was built with /X64 set in the project.&lt;/P&gt;

&lt;P&gt;In my installation it appears that MKL lapack95 was set up at installation. &amp;nbsp;In past versions you were required to build it yourself using the supplied sources, but that doesn't appear to be implicated in your problem.&lt;/P&gt;

&lt;P&gt;The problem seems deep enough into MKL that the MKL forum might find a more expert response.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2014 14:08:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-linking-with-Lapack/m-p/960448#M15872</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-03-26T14:08:17Z</dc:date>
    </item>
    <item>
      <title>Hi Mads P.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-linking-with-Lapack/m-p/960449#M15873</link>
      <description>&lt;P&gt;Hi Mads P.&lt;/P&gt;

&lt;P&gt;Are you build Intel Fortran project with Lapack 95 interface?&amp;nbsp; could you provide a test case to us?&lt;/P&gt;

&lt;P&gt;One similiar problem for your reference &lt;A href="http://software.intel.com/en-us/forums/topic/506711"&gt;http://software.intel.com/en-us/forums/topic/506711&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
	Ying&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 03:29:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-linking-with-Lapack/m-p/960449#M15873</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2014-03-27T03:29:22Z</dc:date>
    </item>
    <item>
      <title>/IMPLIB:"C:\mmpe\programming</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-linking-with-Lapack/m-p/960450#M15874</link>
      <description>&lt;PRE style="font-size: 12.800000190734863px; color: rgb(96, 96, 96);"&gt;
&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14.399999618530273px;"&gt;/IMPLIB:"C:\mmpe\programming\Fortran\Ax_b_wrap\Ax_b_wrap\Debug\Ax_b_wrap.lib" &amp;nbsp;mkl_blas95_ilp64.lib mkl_lapack95_ilp64.lib mkl_intel_ilp64.lib mkl_core.lib &lt;STRONG&gt;mkl_intel_thread.lib
&lt;/STRONG&gt;&lt;/SPAN&gt;
you use 32 bit (&lt;SPAN style="font-weight: 700; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14.399999618530273px;"&gt;mkl_intel_thread.lib) &lt;STRONG&gt;while linking with 64 bits libraries. pls remove this lib from the linking line&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/PRE&gt;

&lt;PRE style="font-size: 12.800000190734863px; color: rgb(96, 96, 96);"&gt;
I think this is the cause of this problem: "mkl_intel_c.lib(_sgesv.obj) : error LNK2019: unresolved external symbol _mkl_serv_set_progress referenced in function _sgesv"&lt;/PRE&gt;

&lt;PRE style="font-size: 12.800000190734863px; color: rgb(96, 96, 96);"&gt;
and also - pls check again the MKL linker Adsviser which Tim have already recommended you.

&lt;/PRE&gt;

&lt;P&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 03:42:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-linking-with-Lapack/m-p/960450#M15874</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-03-27T03:42:44Z</dc:date>
    </item>
    <item>
      <title>Thank you all for your help.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-linking-with-Lapack/m-p/960451#M15875</link>
      <description>&lt;P&gt;Thank you all for your help.&lt;/P&gt;

&lt;P&gt;I was compiling for win32 while linking to x64 libraries - stupid me, and thank you again&lt;/P&gt;

&lt;P&gt;--Mads&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2014 06:04:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-linking-with-Lapack/m-p/960451#M15875</guid>
      <dc:creator>Pedersen__M</dc:creator>
      <dc:date>2014-03-27T06:04:23Z</dc:date>
    </item>
  </channel>
</rss>

