<?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 Which lib should I use in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Which-lib-should-I-use/m-p/875220#M8849</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm writing a simple program using Visual Sudio 2005 C++ and the MKL but I'm simply unable to compile it. My program is using the sine function but the compiler gives me the error:&lt;/P&gt;
&lt;P&gt;Error1error C3861: 'vdSin': identifier not found&lt;/P&gt;
&lt;P&gt;Here's my code:&lt;/P&gt;&lt;FONT color="#0000ff"&gt;
&lt;P&gt;&lt;FONT size="2"&gt;int&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; n; &lt;FONT color="#008000"&gt;//Number of element&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;double&lt;/FONT&gt;* angle;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;double&lt;/FONT&gt;* result;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;printf(&lt;FONT color="#a31515"&gt;"***** Test Intel Sine Function *****

"&lt;/FONT&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;*angle = 23;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;vdSin(n,angle,result);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;printf(&lt;FONT color="#a31515"&gt;"Sine result of sin(%d) : %d

"&lt;/FONT&gt;,*angle,*result);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;I think I'm not including the proper lib file. How do I know which function goes with which library file?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jun 2008 17:43:55 GMT</pubDate>
    <dc:creator>dc-david</dc:creator>
    <dc:date>2008-06-11T17:43:55Z</dc:date>
    <item>
      <title>Which lib should I use</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Which-lib-should-I-use/m-p/875220#M8849</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm writing a simple program using Visual Sudio 2005 C++ and the MKL but I'm simply unable to compile it. My program is using the sine function but the compiler gives me the error:&lt;/P&gt;
&lt;P&gt;Error1error C3861: 'vdSin': identifier not found&lt;/P&gt;
&lt;P&gt;Here's my code:&lt;/P&gt;&lt;FONT color="#0000ff"&gt;
&lt;P&gt;&lt;FONT size="2"&gt;int&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; n; &lt;FONT color="#008000"&gt;//Number of element&lt;P&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;double&lt;/FONT&gt;* angle;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff"&gt;double&lt;/FONT&gt;* result;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;printf(&lt;FONT color="#a31515"&gt;"***** Test Intel Sine Function *****

"&lt;/FONT&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;*angle = 23;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;vdSin(n,angle,result);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;printf(&lt;FONT color="#a31515"&gt;"Sine result of sin(%d) : %d

"&lt;/FONT&gt;,*angle,*result);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;I think I'm not including the proper lib file. How do I know which function goes with which library file?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2008 17:43:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Which-lib-should-I-use/m-p/875220#M8849</guid>
      <dc:creator>dc-david</dc:creator>
      <dc:date>2008-06-11T17:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Which lib should I use</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Which-lib-should-I-use/m-p/875221#M8850</link>
      <description>&lt;P&gt;Ok, I found the error. &lt;/P&gt;
&lt;P&gt;My order of includes had an influence:&lt;/P&gt;
&lt;P&gt;Before it was&lt;FONT color="#0000ff" size="2"&gt;#include&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"mkl_vml.h"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#a31515" size="2"&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" size="2"&gt;#include&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"stdafx.h"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#000000"&gt;And now it is the opposite, &lt;FONT color="#0000ff" size="2"&gt;#include&lt;/FONT&gt;&lt;FONT size="2"&gt; &lt;/FONT&gt;&lt;FONT color="#a31515" size="2"&gt;"stdafx.h" &lt;FONT color="#000000"&gt;first.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#a31515" size="2"&gt;&lt;FONT color="#000000"&gt;Then I add the proper library as dependencies.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT color="#a31515"&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 12 Jun 2008 18:36:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Which-lib-should-I-use/m-p/875221#M8850</guid>
      <dc:creator>dc-david</dc:creator>
      <dc:date>2008-06-12T18:36:06Z</dc:date>
    </item>
  </channel>
</rss>

