<?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 Help with linking MKL with VS2010unresolved external symbol in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-linking-MKL-with-VS2010unresolved-external-symbol/m-p/776780#M1132</link>
    <description>Sorry for not being replied to this thread any earlier. But THANK you all for your help. And Ying H's suggestion solves my problem.</description>
    <pubDate>Thu, 19 Aug 2010 20:47:38 GMT</pubDate>
    <dc:creator>Yuzhuo_Su</dc:creator>
    <dc:date>2010-08-19T20:47:38Z</dc:date>
    <item>
      <title>Help with linking MKL with VS2010unresolved external symbol</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-linking-MKL-with-VS2010unresolved-external-symbol/m-p/776776#M1128</link>
      <description>I am having the follwoing example code: &lt;BR /&gt;&lt;BR /&gt;#include "mkl.h"&lt;BR /&gt;#include &lt;VECTOR&gt;&lt;BR /&gt;&lt;BR /&gt;#define N 5&lt;BR /&gt;void main()&lt;BR /&gt;{&lt;BR /&gt; MKL_INT n = N, inca = 1, incb = 1, i;&lt;BR /&gt; MKL_Complex16 a&lt;N&gt;, b&lt;N&gt;, c;&lt;BR /&gt; for( i = 0; i &amp;lt; n; i++ ){&lt;BR /&gt;  a&lt;I&gt;.real = (double)i; a&lt;I&gt;.imag = (double)i * 2.0;&lt;BR /&gt;  b&lt;I&gt;.real = (double)(n - i); b&lt;I&gt;.imag = (double)i * 2.0;&lt;BR /&gt; }&lt;BR /&gt; zdotc( &amp;amp;c, &amp;amp;n, a, &amp;amp;inca, b, &amp;amp;incb );&lt;BR /&gt; printf( "The complex dot product is: ( %6.2f, %6.2f)\\n", a[1].real, a[1].imag );&lt;BR /&gt; system("PAUSE");&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;And I got following error message:&lt;BR /&gt;&lt;BR /&gt;error LNK2019: unresolved external symbol _zdotc referenced in function _main&lt;BR /&gt;&lt;BR /&gt;I think I did Additional dependencies for linkecorrect The following is what I have for this project:&lt;BR /&gt;&lt;BR /&gt;mkl_intel_ilp64.lib&lt;BR /&gt;mkl_intel_thread.lib&lt;BR /&gt;mkl_core.lib&lt;BR /&gt;mkl_solver_ilp64.lib&lt;BR /&gt;&lt;BR /&gt;What else do I&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/N&gt;&lt;/N&gt;&lt;/VECTOR&gt;</description>
      <pubDate>Mon, 19 Jul 2010 17:16:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-linking-MKL-with-VS2010unresolved-external-symbol/m-p/776776#M1128</guid>
      <dc:creator>Yuzhuo_Su</dc:creator>
      <dc:date>2010-07-19T17:16:40Z</dc:date>
    </item>
    <item>
      <title>Help with linking MKL with VS2010unresolved external symbol</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-linking-MKL-with-VS2010unresolved-external-symbol/m-p/776777#M1129</link>
      <description>You are calling a Fortran-77 routine (zdotc) from a mix of C and C++ (#include &lt;VECTOR&gt;). Note that there are C interfaces to the MKL routines, as well.&lt;BR /&gt;&lt;BR /&gt;The dot product is going to be in the variable c, not a[1]. Here is a modified version of zdotex.c:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[cpp]#include &lt;STDIO.H&gt;
#include &lt;MKL.H&gt;

#define N 5

int main()
{
    MKL_INT n = N, inca = 1, incb = 1, i;
    MKL_Complex16 a&lt;N&gt;, b&lt;N&gt;, c;
    for( i = 0; i &amp;lt; n; i++ ){
        a&lt;I&gt;.real = (double)i; a&lt;I&gt;.imag = (double)i * 2.0;
        b&lt;I&gt;.real = (double)(n - i); b&lt;I&gt;.imag = (double)i * 2.0;
    }
    zdotc( &amp;amp;c, &amp;amp;n, a, &amp;amp;inca, b, &amp;amp;incb );
    printf( "The complex dot product is: ( %6.2f, %6.2f)n", c.real, c.imag );
}
[/cpp]&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/N&gt;&lt;/N&gt;&lt;/MKL.H&gt;&lt;/STDIO.H&gt;&lt;/PRE&gt; Compiling this, linking with the libraries that you listed, and running the .EXE file produced gave me the output&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[cpp]The complex dot product is: (140.00, 20.00)[/cpp]&lt;/PRE&gt;&lt;/VECTOR&gt;</description>
      <pubDate>Mon, 19 Jul 2010 19:04:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-linking-MKL-with-VS2010unresolved-external-symbol/m-p/776777#M1129</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-07-19T19:04:28Z</dc:date>
    </item>
    <item>
      <title>Help with linking MKL with VS2010unresolved external symbol</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-linking-MKL-with-VS2010unresolved-external-symbol/m-p/776778#M1130</link>
      <description>one comment on this topic. We can see that Yuzhuo used ilp64 interfaces. For this case, i&lt;SPAN style="font-family: verdana, sans-serif; font-size: 10.8333px;"&gt;f you linked with ILP64 MKL libraries you need to add compiler option -DMKL_ILP64 for C-compilation.&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN style="font-family: verdana, sans-serif; font-size: 10.8333px;"&gt;We recomend to see more info into mkl's user's guide or into this forum, say &lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=76192"&gt;here.&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;--Gennady&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Jul 2010 08:09:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-linking-MKL-with-VS2010unresolved-external-symbol/m-p/776778#M1130</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-07-20T08:09:41Z</dc:date>
    </item>
    <item>
      <title>Help with linking MKL with VS2010unresolved external symbol</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-linking-MKL-with-VS2010unresolved-external-symbol/m-p/776779#M1131</link>
      <description>&lt;P&gt;one more comments :).MSVC 2010 on 64bit Windows support both 32bit and 64bit application development.Ifyou'd like to link MKL ILP64 library,then your&lt;STRONG&gt; MSVC 2010 project configuration&lt;/STRONG&gt; is supposed to be &lt;STRONG&gt;"x64",&lt;/STRONG&gt; not the default "Win32". &lt;BR /&gt;In MSVS 2010* environment,please checkthe optionBuild=&amp;gt;Configuration Manager=&amp;gt; active platform.Select"X64" (if 64bit application).&lt;BR /&gt;&lt;BR /&gt;Here is one genral KBabout MKL usage in VS1020 in &lt;A href="http://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-compiling-and-linking-with-microsoft-visual-cc/"&gt;&lt;B&gt;Compiling and Linking MKL with Microsoft* Visual C/C++*&lt;/B&gt;&lt;/A&gt; .&lt;BR /&gt;and the on-line KB article &lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/"&gt;&lt;B&gt;Intel Math Kernel Library Link Line Advisor&lt;/B&gt;&lt;/A&gt;for your reference, &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ying &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2010 03:26:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-linking-MKL-with-VS2010unresolved-external-symbol/m-p/776779#M1131</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2010-07-26T03:26:10Z</dc:date>
    </item>
    <item>
      <title>Help with linking MKL with VS2010unresolved external symbol</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-linking-MKL-with-VS2010unresolved-external-symbol/m-p/776780#M1132</link>
      <description>Sorry for not being replied to this thread any earlier. But THANK you all for your help. And Ying H's suggestion solves my problem.</description>
      <pubDate>Thu, 19 Aug 2010 20:47:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-with-linking-MKL-with-VS2010unresolved-external-symbol/m-p/776780#M1132</guid>
      <dc:creator>Yuzhuo_Su</dc:creator>
      <dc:date>2010-08-19T20:47:38Z</dc:date>
    </item>
  </channel>
</rss>

