<?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 in Visual C++ program with Intel MKL BLAS routine. in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-Visual-C-program-with-Intel-MKL-BLAS-routine/m-p/899562#M11167</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;The following is the C++ program I am trying to compile in VC++ 2005.&lt;/P&gt;
&lt;P&gt;I got the following error :&lt;/P&gt;
&lt;P&gt;error LNK2019: unresolved external symbol _dasum referenced in function _main&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The following is my code:&lt;/P&gt;
&lt;P&gt;#include&lt;IOSTREAM&gt;&lt;BR /&gt;#include "mkl.h"&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; const int n = 100;&lt;BR /&gt; int INCR = 1;&lt;BR /&gt; double A&lt;N&gt;;&lt;BR /&gt; int i;&lt;BR /&gt; double result;&lt;BR /&gt; &lt;BR /&gt; for(i=0; i&lt;N&gt;&lt;/N&gt; A&lt;I&gt; = (double)i;  &lt;BR /&gt; }&lt;BR /&gt; result = dasum(&amp;amp;n, A, &amp;amp;INCR);&lt;BR /&gt; cout &amp;lt;&amp;lt; result;  &lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;/I&gt;&lt;/N&gt;&lt;/IOSTREAM&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Can someone help me to resolve the problem ?&lt;/P&gt;
&lt;P&gt;Satakarni&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Nov 2008 02:35:24 GMT</pubDate>
    <dc:creator>satakarni_byngmail_c</dc:creator>
    <dc:date>2008-11-21T02:35:24Z</dc:date>
    <item>
      <title>Error in Visual C++ program with Intel MKL BLAS routine.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-Visual-C-program-with-Intel-MKL-BLAS-routine/m-p/899562#M11167</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;The following is the C++ program I am trying to compile in VC++ 2005.&lt;/P&gt;
&lt;P&gt;I got the following error :&lt;/P&gt;
&lt;P&gt;error LNK2019: unresolved external symbol _dasum referenced in function _main&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The following is my code:&lt;/P&gt;
&lt;P&gt;#include&lt;IOSTREAM&gt;&lt;BR /&gt;#include "mkl.h"&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; const int n = 100;&lt;BR /&gt; int INCR = 1;&lt;BR /&gt; double A&lt;N&gt;;&lt;BR /&gt; int i;&lt;BR /&gt; double result;&lt;BR /&gt; &lt;BR /&gt; for(i=0; i&lt;N&gt;&lt;/N&gt; A&lt;I&gt; = (double)i;  &lt;BR /&gt; }&lt;BR /&gt; result = dasum(&amp;amp;n, A, &amp;amp;INCR);&lt;BR /&gt; cout &amp;lt;&amp;lt; result;  &lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;/I&gt;&lt;/N&gt;&lt;/IOSTREAM&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Can someone help me to resolve the problem ?&lt;/P&gt;
&lt;P&gt;Satakarni&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2008 02:35:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-Visual-C-program-with-Intel-MKL-BLAS-routine/m-p/899562#M11167</guid>
      <dc:creator>satakarni_byngmail_c</dc:creator>
      <dc:date>2008-11-21T02:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Visual C++ program with Intel MKL BLAS routine.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-Visual-C-program-with-Intel-MKL-BLAS-routine/m-p/899563#M11168</link>
      <description>&lt;P&gt;What libraries have you added to your link line? For a 32-bit system something like the following could be used:&lt;/P&gt;
&lt;P&gt;mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib&lt;/P&gt;
&lt;P&gt;Todd&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2008 06:16:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-Visual-C-program-with-Intel-MKL-BLAS-routine/m-p/899563#M11168</guid>
      <dc:creator>Todd_R_Intel</dc:creator>
      <dc:date>2008-11-21T06:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Visual C++ program with Intel MKL BLAS routine.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-Visual-C-program-with-Intel-MKL-BLAS-routine/m-p/899564#M11169</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336755"&gt;Todd Rosenquist (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;What libraries have you added to your link line? For a 32-bit system something like the following could be used:&lt;/P&gt;
&lt;P&gt;mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib&lt;/P&gt;
&lt;P&gt;Todd&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Yeah I believe it is the problem of not linking to the libraries.&lt;/P&gt;
&lt;P&gt;How to add libraries to the link line? (I have added MKL library path in VC++ directories.)&lt;/P&gt;
&lt;P&gt;Can you please elobrate you explanation?&lt;/P&gt;
&lt;P&gt;Appreciable for your valuable time.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;SK&lt;/P&gt;</description>
      <pubDate>Sun, 23 Nov 2008 23:53:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-Visual-C-program-with-Intel-MKL-BLAS-routine/m-p/899564#M11169</guid>
      <dc:creator>satakarni_byngmail_c</dc:creator>
      <dc:date>2008-11-23T23:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Visual C++ program with Intel MKL BLAS routine.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-Visual-C-program-with-Intel-MKL-BLAS-routine/m-p/899565#M11170</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial; mso-ansi-language: EN-GB;" lang="EN-GB"&gt;Hi &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: Arial;"&gt;Satakarni,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial; mso-ansi-language: EN-GB;" lang="EN-GB"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt 0.25in;"&gt;&lt;SPAN style="font-size: 10pt; color: maroon; font-family: Arial;"&gt;Hi Below you can find short description for compiling and linking program with &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Intel MKL v.10.0 using the Microsoft* Visual Studio* 2008 or Microsoft* Visual Studio* 2005:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL type="1"&gt;
&lt;LI class="MsoNormal" style="margin: 0in 0in 12pt; mso-margin-top-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Select &lt;STRONG&gt;View  Solution Explorer&lt;/STRONG&gt; (and make sure this window is active). &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="MsoNormal" style="margin: 0in 0in 12pt; mso-margin-top-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Select &lt;STRONG&gt;Tools  Options  Projects and Solutions  VC++ Directories&lt;/STRONG&gt;. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="MsoNormal" style="margin: 0in 0in 12pt; mso-margin-top-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;In the drop down menu titled &lt;STRONG&gt;Show directories for:&lt;/STRONG&gt;, select &lt;STRONG&gt;Include Files&lt;/STRONG&gt;, and then type in the directory for the Intel MKL include files (e.g. default: C:Program FilesIntelMKL10.0include). &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="MsoNormal" style="margin: 0in 0in 12pt; mso-margin-top-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;In the drop down menu titled &lt;STRONG&gt;Show directories for:&lt;/STRONG&gt; select &lt;STRONG&gt;Library Files&lt;/STRONG&gt;, and then type in the directory for the Intel MKL library files (e.g. default: C:Program FilesIntelMKL10.0ia32lib). &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="MsoNormal" style="margin: 0in 0in 12pt; mso-margin-top-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;In the drop down menu titled &lt;STRONG&gt;Show directories for:&lt;/STRONG&gt; select &lt;STRONG&gt;Executable Files&lt;/STRONG&gt;, and then type in the directory for the Intel MKL executable files (e.g. default: C:Program FilesIntelMKL10.0ia32bin). &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="MsoNormal" style="margin: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;On the main toolbar select &lt;STRONG&gt;Project  Properties  Configuration Properties  Linker  Input&lt;/STRONG&gt; and in the "Additional Dependencies" line, add the libraries you require &lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;As Todd mentioned, f&lt;SPAN style="color: black;"&gt;or a 32-bit system something like the following could be used:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: Arial;"&gt;mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt 0.25in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;For more information about Linking application with Intel MKL version 10.0 you can find in userguide.pdf chapter 5 ). &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;--Gennady&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2008 14:46:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-in-Visual-C-program-with-Intel-MKL-BLAS-routine/m-p/899565#M11170</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2008-11-25T14:46:04Z</dc:date>
    </item>
  </channel>
</rss>

