<?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 with linking to the MKL library in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-linking-to-the-MKL-library/m-p/915144#M12503</link>
    <description>Ok thank you I solved the problem, now it works.&lt;BR /&gt;I run the linker with the following command&lt;BR /&gt;&lt;BR /&gt;thomas@linux-q9zf:~/Projects/test/src&amp;gt; g++ main.o -static -L$MKLPATH -lpthread -lmkl_ia32 -o exe&lt;BR /&gt;thomas@linux-q9zf:~/Projects/test/src&amp;gt; ./exe&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 26 Jul 2007 18:18:16 GMT</pubDate>
    <dc:creator>thomas_krakow</dc:creator>
    <dc:date>2007-07-26T18:18:16Z</dc:date>
    <item>
      <title>Problem with linking to the MKL library</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-linking-to-the-MKL-library/m-p/915141#M12500</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;DIV align="left"&gt;&lt;PRE&gt;&lt;FONT face="Arial"&gt;i've written the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;PRE&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;&lt;BR /&gt;#include "mkl.h"&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt;      	MKL_INT	n,incx=1,incy=1;&lt;BR /&gt;	double	x[2],y[2],res;&lt;BR /&gt;&lt;BR /&gt;	x[0]=1,x[1]=2;&lt;BR /&gt;	y[0]=1;y[1]=3;&lt;BR /&gt;&lt;BR /&gt;      res = DDOT(&amp;amp;n, x, &amp;amp;incx, y, &amp;amp;incy);&lt;BR /&gt;                                                             &lt;BR /&gt;      return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="Arial"&gt;to compute the scalarproduct.&lt;BR /&gt;The compiling has completed succesfull with the gcc C compiler.&lt;BR /&gt;(I use Anjuta as IDE)&lt;BR /&gt;&lt;BR /&gt;Now I tried to link tho main.o file with the following command&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;PRE&gt;&lt;FONT face="Arial"&gt;ld main.o -L$MKLPATH -lmkl_ia32 -lguide -lpthread&lt;/FONT&gt;&lt;/PRE&gt;&lt;FONT face="Arial"&gt;&lt;BR /&gt;and I got the following error&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;PRE&gt;&lt;FONT face="Arial"&gt;ld: warning: cannot find entry symbol _start; defaulting to 00000000080486f0&lt;BR /&gt;main.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'&lt;BR /&gt;&lt;BR /&gt;with &lt;BR /&gt;MKLPATH="/opt/intel/mkl/9.1.021/lib/32/"&lt;BR /&gt;&lt;BR /&gt;I hope anyone can help me.&lt;BR /&gt;&lt;BR /&gt;Thomas&lt;BR /&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Jul 2007 14:53:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-linking-to-the-MKL-library/m-p/915141#M12500</guid>
      <dc:creator>thomas_krakow</dc:creator>
      <dc:date>2007-07-26T14:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with linking to the MKL library</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-linking-to-the-MKL-library/m-p/915142#M12501</link>
      <description>It looks as if you invoked g++ (inadvertently, perhaps by using a .C file type). If you have a reason for not simply using g++ rather than ld to drive the link, you will still need to find out which libraries g++ would have used (at a minimum, -lstdc++). You might find it easier to use lib_serial until you have a reason for using the threaded MKL.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jul 2007 15:34:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-linking-to-the-MKL-library/m-p/915142#M12501</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2007-07-26T15:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with linking to the MKL library</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-linking-to-the-MKL-library/m-p/915143#M12502</link>
      <description>Hello tim18,&lt;BR /&gt;&lt;BR /&gt;thank you for your reply.&lt;BR /&gt;Now I run the linker with&lt;BR /&gt;&lt;BR /&gt;g++ main.o -L$MKLPATH -lpthread -lmkl -lmkl_ia32&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;MKLPATH="/opt/intel/mkl/9.1.021/lib_serial/32/"&lt;BR /&gt;&lt;BR /&gt;I got the file a.out and run it, tehn I got the following error message &lt;BR /&gt;&lt;BR /&gt;thomas@linux-q9zf:~/Projects/test/src&amp;gt; ./a.out&lt;BR /&gt;./a.out: error while loading shared libraries: libmkl.so: cannot open shared object file: No such file or directory&lt;BR /&gt;&lt;BR /&gt;But I do have such file in the corresponding directory.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jul 2007 18:08:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-linking-to-the-MKL-library/m-p/915143#M12502</guid>
      <dc:creator>thomas_krakow</dc:creator>
      <dc:date>2007-07-26T18:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with linking to the MKL library</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-linking-to-the-MKL-library/m-p/915144#M12503</link>
      <description>Ok thank you I solved the problem, now it works.&lt;BR /&gt;I run the linker with the following command&lt;BR /&gt;&lt;BR /&gt;thomas@linux-q9zf:~/Projects/test/src&amp;gt; g++ main.o -static -L$MKLPATH -lpthread -lmkl_ia32 -o exe&lt;BR /&gt;thomas@linux-q9zf:~/Projects/test/src&amp;gt; ./exe&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jul 2007 18:18:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-linking-to-the-MKL-library/m-p/915144#M12503</guid>
      <dc:creator>thomas_krakow</dc:creator>
      <dc:date>2007-07-26T18:18:16Z</dc:date>
    </item>
  </channel>
</rss>

