<?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: Invalid preprocessor command 'include_next' in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Invalid-preprocessor-command-include-next/m-p/1640698#M174090</link>
    <description>&lt;P&gt;Apologies if this was the wrong place, but we primarily deal with ifort and ifx based Fortran builds so my mind was set on this forum. If it is possible, I am fine if this post is moved (or I can recreate if it's necessary to post in the C/C++ forum).&lt;/P&gt;&lt;P&gt;Our Visual Studio solutions contain a mixture of both Fortran and C/C++ projects. I only see this error after upgrading from oneAPI 2024.2.0 to oneAPI 2025.0.0 Base &amp;amp; HPC toolkits.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2024 17:15:01 GMT</pubDate>
    <dc:creator>Cameron</dc:creator>
    <dc:date>2024-11-01T17:15:01Z</dc:date>
    <item>
      <title>Invalid preprocessor command 'include_next'</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Invalid-preprocessor-command-include-next/m-p/1640521#M174082</link>
      <description>&lt;P&gt;Installed oneAPI 2025.0.0 and am getting this error on an IFX based build that contains several C/C++ projects in Visual Studio 2022:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;error C1021: invalid preprocessor command 'include_next'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visual Studio dumps me in float.h at "C:\Program Files (x86)\Intel\oneAPI\compiler\latest\opt\compiler\include\float.h" at the very bottom at line 450:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cameron_0-1730409695248.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/60036i1A8F042C81C67A8F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Cameron_0-1730409695248.png" alt="Cameron_0-1730409695248.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The files in question are in a C based project that is set to use MSVC, not Intel C/C++ compiler. Have I missed something obvious?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 21:34:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Invalid-preprocessor-command-include-next/m-p/1640521#M174082</guid>
      <dc:creator>Cameron</dc:creator>
      <dc:date>2024-10-31T21:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid preprocessor command 'include_next'</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Invalid-preprocessor-command-include-next/m-p/1640697#M174089</link>
      <description>&lt;P&gt;1) You posted this in an Intel Fortran forum, not Intel C++.&lt;/P&gt;&lt;P&gt;2) That is an MSVC error message, I'm pretty sure.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 17:01:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Invalid-preprocessor-command-include-next/m-p/1640697#M174089</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2024-11-01T17:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid preprocessor command 'include_next'</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Invalid-preprocessor-command-include-next/m-p/1640698#M174090</link>
      <description>&lt;P&gt;Apologies if this was the wrong place, but we primarily deal with ifort and ifx based Fortran builds so my mind was set on this forum. If it is possible, I am fine if this post is moved (or I can recreate if it's necessary to post in the C/C++ forum).&lt;/P&gt;&lt;P&gt;Our Visual Studio solutions contain a mixture of both Fortran and C/C++ projects. I only see this error after upgrading from oneAPI 2024.2.0 to oneAPI 2025.0.0 Base &amp;amp; HPC toolkits.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 17:15:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Invalid-preprocessor-command-include-next/m-p/1640698#M174090</guid>
      <dc:creator>Cameron</dc:creator>
      <dc:date>2024-11-01T17:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid preprocessor command 'include_next'</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Invalid-preprocessor-command-include-next/m-p/1640732#M174095</link>
      <description>&lt;P&gt;I'd check to see which preprocessor symbols are defined for your compilation. Looking at the build log may help.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 21:54:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Invalid-preprocessor-command-include-next/m-p/1640732#M174095</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2024-11-01T21:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid preprocessor command 'include_next'</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Invalid-preprocessor-command-include-next/m-p/1644506#M174287</link>
      <description>&lt;P&gt;Posting the fix in case someone searches for this exact error since this post seems to come up now. I hate when I find the exact forum post that says "I fixed it" without saying how!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our build environment, we use a Directory.Build.targets file that modifies what Visual Studio uses for the IncludePath and LibraryPath variables. At one point we needed to have a programmatic way to switch the version of the Fortran compiler used to build the product. Visual Studio will recursively try to find this file (similar with .props) on launch and then load the instructions within.&lt;/P&gt;&lt;P&gt;My .targets file specifically set IncludePath to insert oneAPI paths before the content of what already existed in IncludePath. This causes Visual Studio to load float.h from the Intel include files, not from the Windows SDK if using Visual C++ / MSVC. The simple fix for me was to just append oneAPI paths after IncludePath like so:&lt;/P&gt;&lt;PRE&gt;$(IncludePath);C:\Program Files (x86)\Intel\oneAPI\compiler\2025.0\opt\compiler\include; ... &amp;lt;other paths&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is a better way to set these paths, I would appreciate the feedback. Our automated builds run devenv from headless instances (like cmd.exe). Most of this behavior stems directly from our need to use IVF 12, IVF 15, IVF 19, and others at the same time for different products we supported. Modifying the VC++ properties manually was tedious, so our dev team moved to .targets that has conditionals on the version of VC that is launched to consume the file. Good news is that we no longer need the older IVF, we are purely oneAPI 2024.2.1 now and are migrating to IFX as quickly as we can.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 14:25:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Invalid-preprocessor-command-include-next/m-p/1644506#M174287</guid>
      <dc:creator>Cameron</dc:creator>
      <dc:date>2024-11-20T14:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid preprocessor command 'include_next'</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Invalid-preprocessor-command-include-next/m-p/1644552#M174292</link>
      <description>&lt;P&gt;Do you know about the devenv option /useenv? This causes VS to use the current process' environment variables rather than what it would normally use. If you fully establish INCLUDE, LIB and PATH before invoking /useenv, you'll have full control over what gets used.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 17:26:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Invalid-preprocessor-command-include-next/m-p/1644552#M174292</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2024-11-20T17:26:10Z</dc:date>
    </item>
  </channel>
</rss>

