<?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: For mixed-language in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1236442#M153189</link>
    <description>&lt;P&gt;FortranFan suggested in a post this morning that the Fortran Lang Discourse as a good site to follow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had a&amp;nbsp; quick look at the site and there was a simple Fortran program on trees. It looked interesting so I grabbed the code. It is attached.&lt;/P&gt;
&lt;P&gt;But I got a ifmodintr.lib missing link error.&amp;nbsp; It was easy to fix. but why does a simple Fortran program need a mixed programming fix?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Dec 2020 18:00:54 GMT</pubDate>
    <dc:creator>JohnNichols</dc:creator>
    <dc:date>2020-12-11T18:00:54Z</dc:date>
    <item>
      <title>LNK1104	cannot open file 'ifmodintr.lib'</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1167878#M144996</link>
      <description>&lt;P&gt;I have a C++ project in MSVS2017 that references a static Fortran library built in IVF 19.0.2.190. A build&amp;nbsp;error is encountered while running the C++ project: LNK1104&amp;nbsp;cannot open file 'ifmodintr.lib'. This project was run successfully a few of years ago (2016) with another version of the IVF static lib.&lt;/P&gt;&lt;P&gt;1. How do you include this library in the project path as a default setting?&lt;BR /&gt;2. Also, is there a way to "package" this and other required libraries in the static Fortran library?&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 21:09:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1167878#M144996</guid>
      <dc:creator>avinashs</dc:creator>
      <dc:date>2019-03-11T21:09:50Z</dc:date>
    </item>
    <item>
      <title>See https://software.intel</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1167879#M144997</link>
      <description>&lt;P&gt;See&amp;nbsp;https://software.intel.com/en-us/articles/configuring-visual-studio-for-mixed-language-applications&lt;/P&gt;&lt;P&gt;No, you can't package the Intel libraries in your own.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 21:40:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1167879#M144997</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2019-03-11T21:40:28Z</dc:date>
    </item>
    <item>
      <title>Thanks. The steps outline in</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1167880#M144998</link>
      <description>&lt;P&gt;Thanks. The&amp;nbsp;steps outline in the link fixed the problem. As a point of clarification, if the Fortran static library has various versions (Debug/Release and IA-32/Intel64), can VS2017 be configured to automatically link to the correct one?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 00:03:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1167880#M144998</guid>
      <dc:creator>avinashs</dc:creator>
      <dc:date>2019-03-12T00:03:30Z</dc:date>
    </item>
    <item>
      <title>For mixed-language</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1167881#M144999</link>
      <description>&lt;P&gt;For mixed-language applications the best approach is to set the Fortran static library project property Fortran &amp;gt; Libraries &amp;gt; Disable default library search rules &amp;gt; Yes. This means that you will need to add the names of the Intel Fortran run-time libraries in Linker &amp;gt; Additional Dependencies in your C main project. The reason you can't mix sets is that C/C++ cares at compile-time which set you use - Fortran doesn't. (If the main program is Fortran, then it will pull in the appropriate libraries.)&lt;/P&gt;&lt;P&gt;Instead of manually adding the library names to the C++ project, if there is an object from your library that is always used, you can add OBJCOMMENT directives to specify the Fortran libraries. From the Fortran perspective, the debug and release libraries are the same. So you'd add the following lines to the relevant source(s):&lt;/P&gt;
&lt;PRE class="brush:fortran; class-name:dark;"&gt;!DIR$ OBJCOMMENT LIB:"ifconsol.lib"
!DIR$ OBJCOMMENT LIB:"libifcoremd.lib"
!DIR$ OBJCOMMENT LIB:"libifportmd.lib"
!DIR$ OBJCOMMENT LIB:"libmmd.lib"
!DIR$ OBJCOMMENT LIB:"ifmodintr.lib"&lt;/PRE&gt;

&lt;P&gt;This should handle most cases. If you do this, you must disable default library search rules in the library project.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 01:13:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1167881#M144999</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2019-03-12T01:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: For mixed-language</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1236442#M153189</link>
      <description>&lt;P&gt;FortranFan suggested in a post this morning that the Fortran Lang Discourse as a good site to follow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had a&amp;nbsp; quick look at the site and there was a simple Fortran program on trees. It looked interesting so I grabbed the code. It is attached.&lt;/P&gt;
&lt;P&gt;But I got a ifmodintr.lib missing link error.&amp;nbsp; It was easy to fix. but why does a simple Fortran program need a mixed programming fix?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 18:00:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1236442#M153189</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2020-12-11T18:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: For mixed-language</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1236461#M153195</link>
      <description>&lt;P&gt;Normally, you don't need a fix. If the compiler is installed properly, ifmodintr.lib should be found with the default set of library directories. Where you can get into trouble is if the main program is not Fortran and you have not set up the library paths for the other language. Another thing I have seen is where people have set their environment to point to an ancient version of the Intel libraries where ifmodintr.lib didn't exist.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 19:30:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1236461#M153195</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2020-12-11T19:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: For mixed-language</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1236466#M153197</link>
      <description>&lt;P&gt;Intel® Fortran Compiler – toolkit version: 2021.1-beta10, extension version 19.2.0060.16, Package ID: w_oneAPI_2021.1.2288, Copyright © 2002-2020 Intel Corporation. All rights reserved.&lt;BR /&gt;* Other names and brands may be claimed as the property of others.&lt;/P&gt;
&lt;P&gt;Created new project in visual studio 2019 preview&amp;nbsp;&lt;/P&gt;
&lt;P&gt;added the Fortran code to main program unit&lt;/P&gt;
&lt;P&gt;error repeated.&lt;/P&gt;
&lt;P&gt;added&amp;nbsp;C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\compiler\lib\ia32_win&lt;/P&gt;
&lt;P&gt;to linker additional library directories&amp;nbsp;&lt;/P&gt;
&lt;P&gt;still seems weird?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 19:43:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1236466#M153197</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2020-12-11T19:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: For mixed-language</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1236483#M153201</link>
      <description>&lt;P&gt;Your program links fine for me in VS2019 and the oneAPI compiler.&lt;/P&gt;
&lt;P&gt;This is what I have under Libraries:&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;$(VSInstallDir)VC\Tools\MSVC\$(VCToolsVersion)\lib\x86
$(UniversalCRTSdkDir)Lib\$(UCRTVersion)\um\x86
$(UniversalCRTSdkDir)Lib\$(UCRTVersion)\ucrt\x86
$(IFortInstallDir)compiler\lib\ia32_win
$(IFortInstallDir)..\..\..\mkl\latest\lib\ia32
$(VSInstallDir)VC\Tools\MSVC\$(VCToolsVersion)\atlmfc\lib\x86
$(WindowsSdkDir)lib\winv6.3\um\x86
$(FrameworkSDKDir)lib&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Dec 2020 20:53:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1236483#M153201</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2020-12-11T20:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: LNK1104	cannot open file 'ifmodintr.lib'</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1512454#M167610</link>
      <description>&lt;P&gt;How to solve this in the newest oneAPI 2023.2 (command line, not VS IDE)?&lt;/P&gt;&lt;P&gt;1. Run "x64 Native Tools Command Prompt for VS 2022" from the Start Menu&lt;/P&gt;&lt;P&gt;2. Change to project working directory&lt;/P&gt;&lt;P&gt;3. Run '%ONEAPI_ROOT%\setvars.bat'&lt;/P&gt;&lt;P&gt;4. ifort complains during compilation it cannot find ifmodintr.lib and ifconsol.lib&lt;/P&gt;&lt;P&gt;It worked normally in older oneAPI versions by running 'compilervars.bat intel64'.&lt;/P&gt;&lt;P&gt;Thanks for any advice.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 13:24:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1512454#M167610</guid>
      <dc:creator>Petr_Parik</dc:creator>
      <dc:date>2023-08-09T13:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: LNK1104	cannot open file 'ifmodintr.lib'</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1512472#M167612</link>
      <description>&lt;P&gt;This sequence works when I try it. Please copy and paste the command prompt session from start to end. Also add a "SET LIB" command so I can see what's there.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 13:47:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1512472#M167612</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2023-08-09T13:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: LNK1104	cannot open file 'ifmodintr.lib'</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1512849#M167636</link>
      <description>&lt;P&gt;Okay, I made a mistake of overwriting the LIB variable inside the compilation batch. After the correction the linker complained it can't find&amp;nbsp;&lt;EM&gt;kernel32.lib&lt;/EM&gt; , so I installed W10 SDK. It works!&lt;/P&gt;&lt;P&gt;Thank you &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 09:56:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/LNK1104-cannot-open-file-ifmodintr-lib/m-p/1512849#M167636</guid>
      <dc:creator>Petr_Parik</dc:creator>
      <dc:date>2023-08-10T09:56:52Z</dc:date>
    </item>
  </channel>
</rss>

