<?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 MKL g++ issue on Mac 10.11 in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-g-issue-on-Mac-10-11/m-p/1088485#M23071</link>
    <description>&lt;P&gt;Hey, I am trying to run a simple lapack example (lets say the dsyev example, &lt;A href="https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/dsyev_ex.c.htm"&gt;https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/dsyev_ex.c.htm), &lt;/A&gt;with MKL 2017 installed on my Mac 10.11.6, using gcc 4.9.2.&lt;/P&gt;

&lt;P&gt;Using the online linker, my link line looks like this&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;gcc -o dsyev dsyev.c  -L${MKLROOT}/lib -Wl,-rpath,${MKLROOT}/lib -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl -DMKL_LP64 -m64 -I${MKLROOT}/include&lt;/PRE&gt;

&lt;P&gt;which works fine and yields the correct output.&lt;/P&gt;

&lt;P&gt;However, I am now trying to use g++ (since my actual project is written in C++), change the "malloc"s into "new"s etc., but upon compiling (using the exact same link line as above), I get a "symbols not found" error for dsyev.&lt;/P&gt;

&lt;P&gt;Is there something I am missing? Thanks a lot in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2016 17:49:41 GMT</pubDate>
    <dc:creator>Seifert__Urban</dc:creator>
    <dc:date>2016-11-16T17:49:41Z</dc:date>
    <item>
      <title>MKL g++ issue on Mac 10.11</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-g-issue-on-Mac-10-11/m-p/1088485#M23071</link>
      <description>&lt;P&gt;Hey, I am trying to run a simple lapack example (lets say the dsyev example, &lt;A href="https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/dsyev_ex.c.htm"&gt;https://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/dsyev_ex.c.htm), &lt;/A&gt;with MKL 2017 installed on my Mac 10.11.6, using gcc 4.9.2.&lt;/P&gt;

&lt;P&gt;Using the online linker, my link line looks like this&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;gcc -o dsyev dsyev.c  -L${MKLROOT}/lib -Wl,-rpath,${MKLROOT}/lib -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl -DMKL_LP64 -m64 -I${MKLROOT}/include&lt;/PRE&gt;

&lt;P&gt;which works fine and yields the correct output.&lt;/P&gt;

&lt;P&gt;However, I am now trying to use g++ (since my actual project is written in C++), change the "malloc"s into "new"s etc., but upon compiling (using the exact same link line as above), I get a "symbols not found" error for dsyev.&lt;/P&gt;

&lt;P&gt;Is there something I am missing? Thanks a lot in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 17:49:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-g-issue-on-Mac-10-11/m-p/1088485#M23071</guid>
      <dc:creator>Seifert__Urban</dc:creator>
      <dc:date>2016-11-16T17:49:41Z</dc:date>
    </item>
    <item>
      <title>Please show us the prototype</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-g-issue-on-Mac-10-11/m-p/1088486#M23072</link>
      <description>&lt;P&gt;Please show us the prototype declarations for the MKL routine(s) and the actual linker message. C++ name mangling may be the culprit, especially if you did not use &lt;STRONG&gt;extern "C" {}&lt;/STRONG&gt; around the prototype declarations.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 18:13:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-g-issue-on-Mac-10-11/m-p/1088486#M23072</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2016-11-16T18:13:00Z</dc:date>
    </item>
    <item>
      <title>… Of course, thats it, forgot</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-g-issue-on-Mac-10-11/m-p/1088487#M23073</link>
      <description>&lt;P&gt;… Of course, thats it, forgot the extern "C" {…}. Thank you so much!&lt;/P&gt;

&lt;P&gt;For future readers, the following prototype declaration resolves my issue.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;extern "C" { void dsyev( char* jobz, char* uplo, int* n, double* a, int* lda,
                        double* w, double* work, int* lwork, int* info );}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 18:31:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-g-issue-on-Mac-10-11/m-p/1088487#M23073</guid>
      <dc:creator>Seifert__Urban</dc:creator>
      <dc:date>2016-11-16T18:31:36Z</dc:date>
    </item>
  </channel>
</rss>

