<?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 Linking error while using GCC 4.4.2 on Debian testing in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-error-while-using-GCC-4-4-2-on-Debian-testing/m-p/898527#M11105</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;seems to be a error typical of not finding the math module, does explicitly specifying "-lm" do no good?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;C.S.N&lt;/P&gt;</description>
    <pubDate>Sat, 06 Feb 2010 21:57:51 GMT</pubDate>
    <dc:creator>csnatarajan</dc:creator>
    <dc:date>2010-02-06T21:57:51Z</dc:date>
    <item>
      <title>Linking error while using GCC 4.4.2 on Debian testing</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-error-while-using-GCC-4-4-2-on-Debian-testing/m-p/898526#M11104</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am a beginner of MKL. I installed Intel C++ Compiler 11.1.064 on my Debian testing, and GCC 4.4.2. I tried to compile a very simple code to test MKL:&lt;/P&gt;
&lt;P&gt;test_ddot.c:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;#include "mkl.h"&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;MATH.H&gt;&lt;BR /&gt;#define N 3&lt;BR /&gt;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; double vec1&lt;N&gt; = {1.0, 2.0, 3.0};&lt;BR /&gt; double vec2&lt;N&gt; = {4.1, 5.1, 6.1};&lt;BR /&gt; int N_vec = N, inca = 1, incb = 1;&lt;BR /&gt; double result;&lt;BR /&gt;&lt;BR /&gt; result = ddot(&amp;amp;N_vec, vec1, &amp;amp;inca, vec2, &amp;amp;incb);&lt;BR /&gt; printf("Vector product in double precision is %f\\n",result);&lt;BR /&gt;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/N&gt;&lt;/N&gt;&lt;/MATH.H&gt;&lt;/STDIO.H&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;While at compile time GCC shows the following linking error:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;$ gcc -o test_ddot test_ddot.c -Wl,--start-group -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -Wl,--end-group -liomp5 -lpthread&lt;/P&gt;
&lt;P&gt;/opt/intel/Compiler/11.1/064/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `sin'&lt;BR /&gt; /opt/intel/Compiler/11.1/064/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `cos'&lt;BR /&gt; /opt/intel/Compiler/11.1/064/mkl/lib/em64t/libmkl_core.so: undefined reference to `sqrt'&lt;BR /&gt; /opt/intel/Compiler/11.1/064/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `log'&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;But if I replaced gcc with icc, then everything is good. &lt;/B&gt;&lt;/P&gt;
&lt;P&gt;Any suggestions? Thanks a lot!&lt;/P&gt;
&lt;P&gt;P.S. I installed libstdc++.so.5 seperately for icc, because Debian testing now only provides libstdc++.so.6.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2010 21:47:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-error-while-using-GCC-4-4-2-on-Debian-testing/m-p/898526#M11104</guid>
      <dc:creator>eeliumsn_com</dc:creator>
      <dc:date>2010-02-06T21:47:14Z</dc:date>
    </item>
    <item>
      <title>Linking error while using GCC 4.4.2 on Debian testing</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-error-while-using-GCC-4-4-2-on-Debian-testing/m-p/898527#M11105</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;seems to be a error typical of not finding the math module, does explicitly specifying "-lm" do no good?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;C.S.N&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2010 21:57:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-error-while-using-GCC-4-4-2-on-Debian-testing/m-p/898527#M11105</guid>
      <dc:creator>csnatarajan</dc:creator>
      <dc:date>2010-02-06T21:57:51Z</dc:date>
    </item>
    <item>
      <title>Linking error while using GCC 4.4.2 on Debian testing</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-error-while-using-GCC-4-4-2-on-Debian-testing/m-p/898528#M11106</link>
      <description>&lt;P&gt;Yes! It works.Thanks for help.&lt;/P&gt;
&lt;P&gt;Because I did not use any standard math functions, so I didn't expect to link with math library. And Intel link advisor does not suggest -lm either. While it seems MKL does need math lib.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2010 01:09:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-error-while-using-GCC-4-4-2-on-Debian-testing/m-p/898528#M11106</guid>
      <dc:creator>eeliumsn_com</dc:creator>
      <dc:date>2010-02-07T01:09:17Z</dc:date>
    </item>
  </channel>
</rss>

