<?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: How do I find the conflicting library &amp;quot;Link warning link 4098&amp;quot; in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1644027#M36663</link>
    <description>&lt;P&gt;The compiler isn't involved here - it's the linker. I generally find this particular diagnostic unhelpful in its suggestion to use /nodefaultlibs. Usually, this problem occurs when you have a mix of DLL and static libraries being linked in. Did you check to see that your selection of static libraries was carried over into the release configuration?&lt;/P&gt;&lt;P&gt;Asking for a link map and reading the map file can also help identify the issue. It happens when a symbol has been found in one library but a reference to an object in another library also defines that same symbol.&lt;/P&gt;&lt;P&gt;I'll also comment that your paraphrasing and excerpting the diagnostics interferes with people trying to help you.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2024 22:36:16 GMT</pubDate>
    <dc:creator>Steve_Lionel</dc:creator>
    <dc:date>2024-11-18T22:36:16Z</dc:date>
    <item>
      <title>How do I find the conflicting library "Link warning link 4098"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1643968#M36662</link>
      <description>&lt;P&gt;I have a project I coded myself in VS 2019 Intel 2023. It works fine in Debug config, with &lt;STRONG&gt;Run time libraries /libs:static and Intel Math Kernel /qmkl:sequential&lt;/STRONG&gt;. &lt;EM&gt;The results are correct!!!&lt;/EM&gt; BUT when I build it w&lt;STRONG&gt;/Release config&lt;/STRONG&gt;, I get &lt;STRONG&gt;"Link warning link 4098:Default lib can conflict with other lib use /NODEFAULTLIBS library"&lt;/STRONG&gt; &lt;EM&gt;and the results are wrong!!!&lt;/EM&gt; When I add /NODEFAULTLIBS to the link directive, I get 46 unresolved LNK 2019 errors. I recognize a few MKL that I used, the rest are unrecognizable to me. The compiler recognizes a conflict, but it does not highlight it. &lt;STRONG&gt;How do I find the one that creates the conflict???&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 16:57:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1643968#M36662</guid>
      <dc:creator>Ever</dc:creator>
      <dc:date>2024-11-18T16:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the conflicting library "Link warning link 4098"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1644027#M36663</link>
      <description>&lt;P&gt;The compiler isn't involved here - it's the linker. I generally find this particular diagnostic unhelpful in its suggestion to use /nodefaultlibs. Usually, this problem occurs when you have a mix of DLL and static libraries being linked in. Did you check to see that your selection of static libraries was carried over into the release configuration?&lt;/P&gt;&lt;P&gt;Asking for a link map and reading the map file can also help identify the issue. It happens when a symbol has been found in one library but a reference to an object in another library also defines that same symbol.&lt;/P&gt;&lt;P&gt;I'll also comment that your paraphrasing and excerpting the diagnostics interferes with people trying to help you.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 22:36:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1644027#M36663</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2024-11-18T22:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the conflicting library "Link warning link 4098"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1644043#M36664</link>
      <description>&lt;P&gt;Yes, the /libs:static is present in both Debug and Release configurations, as shown below.&lt;/P&gt;&lt;P&gt;I can get both Debug and release to link w/o warnings and to calculate the correct results only if I add /libdir:noauto and run inside VS, but adding&amp;nbsp;/libdir:noauto overwrites the libs:/static (I know that because the .exe in both Debug and Release folders do not run, because it is missing mkl_sequential.2.dll).&lt;/P&gt;&lt;P&gt;If I remove /libdir:noauto (change it to NO) the results are incorrect because the eigenvalues, which are calculated by MKL, are incorrect "Eigenvalue 1 is numerically infinite or undetermined".&lt;/P&gt;&lt;P&gt;I just updated to oneAPI 2025. The problem persists.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Release.png" style="width: 983px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/60456iD09FD9396850FC17/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Release.png" alt="Release.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 00:40:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1644043#M36664</guid>
      <dc:creator>Ever</dc:creator>
      <dc:date>2024-11-19T00:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the conflicting library "Link warning link 4098"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1644270#M36665</link>
      <description>&lt;P&gt;True - /libdir:noauto overrides both /libs and /Qmkl. But I see you have specified Debug Multithreaded for the Release configuration, which may conflict with the C code in some of the libraries. Try changing to the non-debug version.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 16:49:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1644270#M36665</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2024-11-19T16:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the conflicting library "Link warning link 4098"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1644564#M36666</link>
      <description>&lt;P&gt;In Release config. I tried 4 options of Runtime Library:&lt;BR /&gt;--Multithreaded&lt;BR /&gt;--Multithread (/libs:dll ...&lt;/P&gt;&lt;P&gt;--Debug Multithread (/libs:static ...&lt;BR /&gt;--QuickWin /libs:qwin&amp;nbsp;&lt;/P&gt;&lt;P&gt;with...&lt;BR /&gt;/Qmkl:sequential (to use mkl for the calculation of the eigenvalues)&lt;BR /&gt;and&lt;BR /&gt;/libdir:noauto (which is my attempt to produce a static .exe that includes all the necesary libraries)... my code calculates correctly inside VS, but the .exe does not run standalone, displaying this:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;libifcoremdd.dll was not found&lt;BR /&gt;&amp;nbsp; &amp;nbsp;mkl_sequential.2.dll was not found&lt;BR /&gt;&amp;nbsp; &amp;nbsp;libmmdd.dll was not found&lt;/P&gt;&lt;P&gt;With Runtime libraries:&lt;BR /&gt;--Debug Multithread (/libs:static ...&lt;BR /&gt;--/Qmkl:sequential&lt;BR /&gt;and&lt;BR /&gt;Disable Default Library Search Rules: NO (instead if /libdir:noauto) ...&lt;BR /&gt;...I get warning LNK4098, &amp;amp; the results are incorrect. Incorrect results are computed by MKL. I am sure because in the code, I put a write() statement to print MKL errors if any, and that is what I get, the MKL cannot compute the eigenvalues, and thus the results are incorrect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 18:46:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1644564#M36666</guid>
      <dc:creator>Ever</dc:creator>
      <dc:date>2024-11-20T18:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the conflicting library "Link warning link 4098"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1644611#M36667</link>
      <description>&lt;P&gt;If you use /libdir:noauto you must specify all of the libraries to be used (or rely on some object not compiled that way to pull them in.) Clearly you're getting references to DLL libraries.&lt;/P&gt;&lt;P&gt;I suggest you take this to the MKL forum.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 00:22:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1644611#M36667</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2024-11-21T00:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the conflicting library "Link warning link 4098"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1645076#M36680</link>
      <description>&lt;P&gt;OK, I'll open a post on the MKL forum, but let me share this with you.&lt;/P&gt;&lt;P&gt;The code has worked since 2010 with minor modifications over time, until recently I changed a few arrays from fixed dimensions, such as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;integer parameter n=8;

double precision variable(n,3)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;allocatable variable(:,:)

read(1,*) n

allocate(variable(n,3))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I reverted to the original version, and everything works. The static *.exe produces correct results!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently, using allocatable() is the cause of the problems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both &lt;STRONG&gt;Debug&lt;/STRONG&gt; and &lt;STRONG&gt;Release&lt;/STRONG&gt; work well, with configuration:&lt;/P&gt;&lt;P&gt;Runtime library:&amp;nbsp;Debug Multithreaded (/libs:&lt;STRONG&gt;static&lt;/STRONG&gt; /threads /dbglibs)&lt;/P&gt;&lt;P&gt;Use MKL:&amp;nbsp;Sequential (/&lt;STRONG&gt;Qmkl&lt;/STRONG&gt;:sequential)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 13:44:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1645076#M36680</guid>
      <dc:creator>Ever</dc:creator>
      <dc:date>2024-11-22T13:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the conflicting library "Link warning link 4098"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1648371#M36733</link>
      <description>&lt;P&gt;Hi, Ever:&lt;/P&gt;
&lt;P&gt;Glad that you found out the reversion can produce correct results. Do you still need help here? If so, would you please provide a reproducer to capture the issue you described? Thanks.&lt;/P&gt;
&lt;P&gt;Shiquan&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 02:40:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-find-the-conflicting-library-quot-Link-warning-link/m-p/1648371#M36733</guid>
      <dc:creator>Shiquan_Su</dc:creator>
      <dc:date>2024-12-10T02:40:36Z</dc:date>
    </item>
  </channel>
</rss>

