<?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 static link in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829938#M5474</link>
    <description>you can find this binaries into/opt/intel/Compiler/11.1/072/lib/intel64.&lt;DIV&gt;--Gennady&lt;/DIV&gt;</description>
    <pubDate>Tue, 07 Sep 2010 11:36:50 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2010-09-07T11:36:50Z</dc:date>
    <item>
      <title>static link</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829933#M5469</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am trying to link my code statically. The code is dynamically compiled and works fine by the linking options below:&lt;BR /&gt;&lt;BR /&gt;MKL = "~/intel/Compiler/11.1/064/mkl/lib/em64t"/libmkl_intel_lp64.so "~/intel/Compiler/11.1/064/mkl/lib/em64t"/libmkl_intel_thread.so "~/intel/Compiler/11.1/064/mkl/lib/em64t"/libmkl_core.so -L"~/intel/Compiler/11.1/064/mkl/lib/em64t" -liomp5 -lpthread -lm -DMKL_Complex16="std::complex&lt;DOUBLE&gt;" -static-intel&lt;BR /&gt;&lt;BR /&gt;Now I tried the line below to get static code:&lt;BR /&gt;&lt;BR /&gt;MKL = "~/intel/Compiler/11.1/064/mkl/lib/em64t"/libmkl_intel_lp64.a "~/intel/Compiler/11.1/064/mkl/lib/em64t"/libmkl_intel_thread.a "~/intel/Compiler/11.1/064/mkl/lib/em64t"/libmkl_core.a "~/intel/Compiler/11.1/064/mkl/lib/em64t"/libmkl_solver_lp64.a -L"~/intel/Compiler/11.1/064/mkl/lib/em64t" -openmp -lpthread -lm -DMKL_Complex16="std::complex&lt;DOUBLE&gt;" -static-intel&lt;BR /&gt;&lt;BR /&gt;and when I use above linking, I get many unresolved referenced to almost all MKL functions I have used. Is there anything wrong with the link above? Is it also possible to just provide the path, so the compiler can statically bind all libraries needed? I read somewhere that using "-static-intel" would do such thing, but it didn't help.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;D.&lt;BR /&gt;&lt;/DOUBLE&gt;&lt;/DOUBLE&gt;</description>
      <pubDate>Fri, 03 Sep 2010 17:38:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829933#M5469</guid>
      <dc:creator>Dan4</dc:creator>
      <dc:date>2010-09-03T17:38:06Z</dc:date>
    </item>
    <item>
      <title>static link</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829934#M5470</link>
      <description>Hello &lt;B&gt;&lt;A jquery1283585286922="62" hoverintent_s="1" hoverintent_t="undefined" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=410217" href="http://software.intel.com/en-us/profile/410217/" class="basic"&gt;danltu.se&lt;/A&gt;&lt;/B&gt;!&lt;BR /&gt;&lt;BR /&gt;you forgot to use -Wl,--start-group/-Wl,--end-group linker options. So, your link line will look:&lt;BR /&gt;MKL = "-Wl,--start-group ~/intel/Compiler/11.1/064/mkl/lib/em64t"/libmkl_intel_lp64.a "~/intel/Compiler/11.1/064/mkl/lib/em64t"/libmkl_intel_thread.a "~/intel/Compiler/11.1/064/mkl/lib/em64t"/libmkl_core.a "~/intel/Compiler/11.1/064/mkl/lib/em64t"/libmkl_solver_lp64.a -Wl,--end-group -L"~/intel/Compiler/11.1/064/mkl/lib/em64t" -openmp -lpthread -lm -DMKL_Complex16="std::complex&lt;DOUBLE&gt;" -static-intel&lt;BR /&gt;&lt;BR /&gt;Andrey&lt;BR /&gt;&lt;/DOUBLE&gt;</description>
      <pubDate>Sat, 04 Sep 2010 07:31:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829934#M5470</guid>
      <dc:creator>Andrey_G_Intel2</dc:creator>
      <dc:date>2010-09-04T07:31:06Z</dc:date>
    </item>
    <item>
      <title>static link</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829935#M5471</link>
      <description>Thanks Andrey, when I compile with the link you said I still get this error:&lt;BR /&gt;&lt;BR /&gt; error while loading shared libraries: libguide.so: cannot open shared object file: No such file or directory&lt;BR /&gt;&lt;BR /&gt;should I still add more libraries to be linked?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;D.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Sep 2010 09:23:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829935#M5471</guid>
      <dc:creator>Dan4</dc:creator>
      <dc:date>2010-09-07T09:23:12Z</dc:date>
    </item>
    <item>
      <title>static link</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829936#M5472</link>
      <description>&lt;P&gt;danltu.se,&lt;BR /&gt;&lt;BR /&gt;is it link error or you see this message then you are running your application?&lt;BR /&gt;Could you provide full link line, compiler version, os name and version?&lt;BR /&gt;&lt;BR /&gt;Andrey&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2010 10:18:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829936#M5472</guid>
      <dc:creator>Andrey_G_Intel2</dc:creator>
      <dc:date>2010-09-07T10:18:28Z</dc:date>
    </item>
    <item>
      <title>static link</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829937#M5473</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;No, I see this error when I run my application. I use Linux and Intel C++ compiler. I also used the link you provided in your previous post.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;D.&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Sep 2010 10:49:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829937#M5473</guid>
      <dc:creator>Dan4</dc:creator>
      <dc:date>2010-09-07T10:49:36Z</dc:date>
    </item>
    <item>
      <title>static link</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829938#M5474</link>
      <description>you can find this binaries into/opt/intel/Compiler/11.1/072/lib/intel64.&lt;DIV&gt;--Gennady&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Sep 2010 11:36:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829938#M5474</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-09-07T11:36:50Z</dc:date>
    </item>
    <item>
      <title>static link</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829939#M5475</link>
      <description>Yes I can! But how can I statically link them? I have also used "-lguide" but it didn't help!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Sep 2010 12:09:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829939#M5475</guid>
      <dc:creator>Dan4</dc:creator>
      <dc:date>2010-09-07T12:09:23Z</dc:date>
    </item>
    <item>
      <title>static link</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829940#M5476</link>
      <description>danltu.se,&lt;BR /&gt;&lt;BR /&gt;compiler shouldn`t put dependencies to libguide to your application. Looks like this dependency is coming from somewhere else (for example, from third-party libs which you are using in your application). Could you provide FULL link line?&lt;BR /&gt;&lt;BR /&gt;Andrey&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Sep 2010 12:22:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-link/m-p/829940#M5476</guid>
      <dc:creator>Andrey_G_Intel2</dc:creator>
      <dc:date>2010-09-07T12:22:21Z</dc:date>
    </item>
  </channel>
</rss>

