<?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 Re: Problem Running C++ Example in the user guide in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-Running-C-Example-in-the-user-guide/m-p/906055#M11703</link>
    <description>&lt;P&gt;Suggest to use the MKL_Complex16 type defined in MKL header files,&lt;BR /&gt;and omit declaration of zdotc() which is already provided by "mkl.h".&lt;/P&gt;
&lt;P&gt;So, you had to change the sample code to get it to compile. Welcome to real world.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Oct 2007 13:46:21 GMT</pubDate>
    <dc:creator>rbarron</dc:creator>
    <dc:date>2007-10-01T13:46:21Z</dc:date>
    <item>
      <title>Problem Running C++ Example in the user guide</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-Running-C-Example-in-the-user-guide/m-p/906054#M11702</link>
      <description>&lt;FONT size="1"&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I'm just getting started with MKL, and I'm having some trouble running the examples in the user guide. I'm using Visual C++ 2005 (express), and have followed the directions in the guide regarding the Configuration of my Development envirornment. I am have installed MKL 9.1.027. Any help would be very much welcome.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;TheFell&lt;/P&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;#include&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;&lt;IOSTREAM&gt;&lt;P&gt;&lt;/P&gt;&lt;/IOSTREAM&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;#include&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"mkl.h"&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;typedef&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;struct&lt;/FONT&gt;&lt;FONT size="2"&gt;{ &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt; re; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt; im; } complex16;&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;extern&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"C"&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;void&lt;/FONT&gt;&lt;FONT size="2"&gt; zdotc (complex16*, &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; *, complex16 *, &lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; *, complex16&lt;P&gt;&lt;/P&gt;
&lt;P&gt;*, &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;int&lt;/FONT&gt;&lt;FONT size="2"&gt; *);&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;#define&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; N 5&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;void&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; main()&lt;P&gt;&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;int&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; n, inca = 1, incb = 1, i;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;complex16 a&lt;N&gt;, b&lt;N&gt;, c;&lt;/N&gt;&lt;/N&gt;&lt;/P&gt;
&lt;P&gt;n = N;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;
&lt;P&gt;for&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;( i = 0; i &amp;lt; n; i++ ){&lt;P&gt;&lt;/P&gt;
&lt;P&gt;a&lt;I&gt;.re = (&lt;/I&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt;)i; a&lt;I&gt;.im = (&lt;/I&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt;)i * 2.0;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;b&lt;I&gt;.re = (&lt;/I&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt;)(n - i); b&lt;I&gt;.im = (&lt;/I&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;double&lt;/FONT&gt;&lt;FONT size="2"&gt;)i * 2.0;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;zdotc(&amp;amp;c, &amp;amp;n, a, &amp;amp;inca, b, &amp;amp;incb );&lt;/P&gt;
&lt;P&gt;printf( &lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"The complex dot product is: ( %6.2f, %6.2f)
"&lt;/FONT&gt;&lt;FONT size="2"&gt;, c.re, c.im );&lt;P&gt;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;&lt;FONT size="1"&gt;
&lt;P&gt;1&amp;gt;Compiling...&lt;/P&gt;
&lt;P&gt;1&amp;gt;main.cpp&lt;/P&gt;
&lt;P&gt;1&amp;gt;.main.cpp(5) : error C2733: second C linkage of overloaded function 'zdotc' not allowed&lt;/P&gt;
&lt;P&gt;1&amp;gt; .main.cpp(4) : see declaration of 'zdotc'&lt;/P&gt;
&lt;P&gt;1&amp;gt;Build log was saved at DebugBuildLog.htm"&lt;/P&gt;
&lt;P&gt;1&amp;gt;CPokerProject - 1 error(s), 0 warning(s)&lt;/P&gt;
&lt;P&gt;========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 27 Sep 2007 22:16:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-Running-C-Example-in-the-user-guide/m-p/906054#M11702</guid>
      <dc:creator>thefell</dc:creator>
      <dc:date>2007-09-27T22:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Running C++ Example in the user guide</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-Running-C-Example-in-the-user-guide/m-p/906055#M11703</link>
      <description>&lt;P&gt;Suggest to use the MKL_Complex16 type defined in MKL header files,&lt;BR /&gt;and omit declaration of zdotc() which is already provided by "mkl.h".&lt;/P&gt;
&lt;P&gt;So, you had to change the sample code to get it to compile. Welcome to real world.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2007 13:46:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-Running-C-Example-in-the-user-guide/m-p/906055#M11703</guid>
      <dc:creator>rbarron</dc:creator>
      <dc:date>2007-10-01T13:46:21Z</dc:date>
    </item>
  </channel>
</rss>

