<?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: MKL static link in Microsoft Visual C/C++ projects in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-static-link-in-Microsoft-Visual-C-C-projects/m-p/1710635#M37294</link>
    <description>&lt;P&gt;It looks MKL\StaticLib is empty.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Aug 2025 00:28:30 GMT</pubDate>
    <dc:creator>Fengrui</dc:creator>
    <dc:date>2025-08-20T00:28:30Z</dc:date>
    <item>
      <title>MKL static link in Microsoft Visual C/C++ projects</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-static-link-in-Microsoft-Visual-C-C-projects/m-p/1704559#M37261</link>
      <description>&lt;P&gt;Hi Intel Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a C++ Console App project in MVS 2022 where I call the&amp;nbsp;dgetrf_ method.&lt;/P&gt;&lt;P&gt;I would like to statically link the MKL libraries without using the&amp;nbsp;&lt;STRONG&gt;Project&lt;/STRONG&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;STRONG&gt;Properties&lt;/STRONG&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;STRONG&gt;Configuration Properties&lt;/STRONG&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;STRONG&gt;Intel Libraries for oneAPI&lt;/STRONG&gt; settings&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I selected the following settings in the&amp;nbsp;&lt;STRONG&gt;Project&lt;/STRONG&gt;&amp;gt;&lt;STRONG&gt;Properties&lt;/STRONG&gt;&amp;gt;&lt;STRONG&gt;Configuration Properties&lt;/STRONG&gt; section:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;C/C++&amp;gt;General&amp;gt;Additional Include Directories&lt;/STRONG&gt;:&amp;nbsp;..\MKL\include;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Linker&amp;gt;General&amp;gt;Additional Library Directories&lt;/STRONG&gt;:&amp;nbsp;..\MKL\StaticLib;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Linker&amp;gt;Input&amp;gt;Additional dependencies&lt;/STRONG&gt;:&amp;nbsp;mkl_core.lib;mkl_sequential.lib;mkl_intel_ilp64.lib;mkl_lapack95_ilp64.lib;mkl_blacs_intelmpi_ilp64.lib;mkl_blas95_ilp64.lib;mkl_cdft_core.lib;mkl_sycld.lib;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;And the project was successfully built, but&amp;nbsp;the&amp;nbsp;dgetrf_ method returned -1 instead of 0 (= success).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I build the project with the following settings of the&amp;nbsp;&lt;STRONG&gt;Project&lt;/STRONG&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;STRONG&gt;Properties&lt;/STRONG&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;STRONG&gt;Configuration Properties&lt;/STRONG&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;STRONG&gt;Intel Libraries for oneAPI&amp;gt;&lt;/STRONG&gt;&lt;STRONG&gt;Intel oneAPI Math Kernel Library&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;section:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Use oneMKL&lt;/STRONG&gt;: Sequential&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Use ILP64 interfaces&lt;/STRONG&gt;: Yes&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Use MPI Library&lt;/STRONG&gt;: Intel&amp;nbsp;MPI Library&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;dgetrf_ method is successfully executed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could someone help me to understand what is my mistake?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using the MKL libraries version 2024.2. I have attached my solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MR2025&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 13:13:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-static-link-in-Microsoft-Visual-C-C-projects/m-p/1704559#M37261</guid>
      <dc:creator>RM2025</dc:creator>
      <dc:date>2025-07-21T13:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: MKL static link in Microsoft Visual C/C++ projects</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-static-link-in-Microsoft-Visual-C-C-projects/m-p/1710635#M37294</link>
      <description>&lt;P&gt;It looks MKL\StaticLib is empty.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 00:28:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-static-link-in-Microsoft-Visual-C-C-projects/m-p/1710635#M37294</guid>
      <dc:creator>Fengrui</dc:creator>
      <dc:date>2025-08-20T00:28:30Z</dc:date>
    </item>
  </channel>
</rss>

