<?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 To prevent C++ name in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-Example-works-with-extention-c-but-fails-with-cpp/m-p/1136326#M26029</link>
    <description>&lt;P&gt;To prevent C++ name decoration from being applied, surround the prototype declarations for MKL routines with &lt;STRONG&gt;exterm "C" {}&lt;/STRONG&gt;; see&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;&lt;A href="http://www.cplusplus.com/forum/general/1143/" target="_blank"&gt;http://www.cplusplus.com/forum/general/1143/&lt;/A&gt; .&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2018 23:38:12 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2018-02-08T23:38:12Z</dc:date>
    <item>
      <title>[Help] Example works with extention .c but fails with .cpp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-Example-works-with-extention-c-but-fails-with-cpp/m-p/1136325#M26028</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a big (n~100,000) complex matrix which I would like to diagonlize.&lt;/P&gt;

&lt;P&gt;After googling extensively, I found the following link provides excellent example.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/lapacke_zheev_row.c.htm" target="_blank"&gt;https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/lapacke_zheev_row.c.htm&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I was planning to be able have it work with my smaller problem before turning to a routine with parallel capabilities etc.&lt;/P&gt;

&lt;P&gt;It compiles with "icc zheev.c -mkl -o test" on my machine and produced the correct output.&lt;/P&gt;

&lt;P&gt;But when I tried to merge it into my code with a .cpp extension, it complains about&lt;/P&gt;

&lt;P&gt;undefined reference to `zheev(char*, char*, int*, _dcomplex*, int*, double*, _dcomplex*, int*, double*, int*)'&lt;/P&gt;

&lt;P&gt;After checking around, I found that this is presumably due to the extension that I have .cpp.&lt;/P&gt;

&lt;P&gt;If I rename the zheev.c to zheev.cpp, "icc zheev.cpp -mkl -o test" complains also undefined reference to `zheev(char...&lt;/P&gt;

&lt;P&gt;I know the problem may be too simple, please bear with me, this is my first day of using the routine.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Yue&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 14:28:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-Example-works-with-extention-c-but-fails-with-cpp/m-p/1136325#M26028</guid>
      <dc:creator>Shi__Yue</dc:creator>
      <dc:date>2018-02-08T14:28:01Z</dc:date>
    </item>
    <item>
      <title>To prevent C++ name</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-Example-works-with-extention-c-but-fails-with-cpp/m-p/1136326#M26029</link>
      <description>&lt;P&gt;To prevent C++ name decoration from being applied, surround the prototype declarations for MKL routines with &lt;STRONG&gt;exterm "C" {}&lt;/STRONG&gt;; see&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;&lt;A href="http://www.cplusplus.com/forum/general/1143/" target="_blank"&gt;http://www.cplusplus.com/forum/general/1143/&lt;/A&gt; .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 23:38:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-Example-works-with-extention-c-but-fails-with-cpp/m-p/1136326#M26029</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-02-08T23:38:12Z</dc:date>
    </item>
    <item>
      <title>Hi mecej4,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-Example-works-with-extention-c-but-fails-with-cpp/m-p/1136327#M26030</link>
      <description>&lt;P&gt;Hi mecej4,&lt;/P&gt;

&lt;P&gt;Thanks for the quick reply. It solved my problem.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Yue&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 07:00:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-Example-works-with-extention-c-but-fails-with-cpp/m-p/1136327#M26030</guid>
      <dc:creator>Shi__Yue</dc:creator>
      <dc:date>2018-02-09T07:00:38Z</dc:date>
    </item>
  </channel>
</rss>

