<?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: Fortran Preprocessor ignores defined preprocessor variables in VS IDE? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Preprocessor-ignores-defined-preprocessor-variables-in/m-p/1443182#M164257</link>
    <description>&lt;P&gt;I think you should use: -D_DP instead of -DDP - see the #if line.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jan 2023 09:37:58 GMT</pubDate>
    <dc:creator>Arjen_Markus</dc:creator>
    <dc:date>2023-01-02T09:37:58Z</dc:date>
    <item>
      <title>Fortran Preprocessor ignores defined preprocessor variables in VS IDE?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Preprocessor-ignores-defined-preprocessor-variables-in/m-p/1443181#M164256</link>
      <description>&lt;P&gt;I try to compile software, which was developed in Linux, for Windows. It compiles correctly in Linux. The software contains various preprocessor variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An example from the original source code is:&lt;/P&gt;
&lt;P&gt;#if (_DP==0)&lt;BR /&gt;use iso_fortran_env,only:output_unit,int32,int64,real32,real64,wp=&amp;gt;real32&lt;BR /&gt;#else&lt;BR /&gt;use iso_fortran_env,only:output_unit,int32,int64,real32,real64,wp=&amp;gt;real64&lt;BR /&gt;#endif&lt;/P&gt;
&lt;P&gt;The command line in Visual Studio IDE (Microsoft Visual Studio Community 2022 (64-bit);&lt;BR /&gt;Version 17.0.5), which summarises my settings, is:&lt;/P&gt;
&lt;P&gt;/nologo /debug:full /Od /fpp /DDP /DPARDISO /DSPAINV /warn:interfaces /module:"x64\Debug\\" /object:"x64\Debug\\" /Fd"x64\Debug\vc170.pdb" /traceback /check:bounds /check:stack /libs:static /threads /dbglibs /Qmkl:parallel /c&lt;/P&gt;
&lt;P&gt;The i90 file gives:&lt;/P&gt;
&lt;P&gt;use iso_fortran_env,only:output_unit,int32,int64,real32,real64,wp=&amp;gt;real32&lt;/P&gt;
&lt;P&gt;So, despite using "/fpp /DDP", fpp evaluates the original source code with DP=0. I also tried /DDP=1, but no difference. There are no #DEFINE preprocessor statements in the source code. In fact, all preprocessor variables are taken as 0.&lt;/P&gt;
&lt;P&gt;Any suggestions what I am doing wrong?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 09:34:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Preprocessor-ignores-defined-preprocessor-variables-in/m-p/1443181#M164256</guid>
      <dc:creator>JantN</dc:creator>
      <dc:date>2023-01-02T09:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran Preprocessor ignores defined preprocessor variables in VS IDE?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Preprocessor-ignores-defined-preprocessor-variables-in/m-p/1443182#M164257</link>
      <description>&lt;P&gt;I think you should use: -D_DP instead of -DDP - see the #if line.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 09:37:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Preprocessor-ignores-defined-preprocessor-variables-in/m-p/1443182#M164257</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2023-01-02T09:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran Preprocessor ignores defined preprocessor variables in VS IDE?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Preprocessor-ignores-defined-preprocessor-variables-in/m-p/1443184#M164258</link>
      <description>&lt;P&gt;Thank you. Embarassingly obvious, but I did not see it. And yes, it works.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 09:52:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Preprocessor-ignores-defined-preprocessor-variables-in/m-p/1443184#M164258</guid>
      <dc:creator>JantN</dc:creator>
      <dc:date>2023-01-02T09:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran Preprocessor ignores defined preprocessor variables in VS IDE?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Preprocessor-ignores-defined-preprocessor-variables-in/m-p/1443185#M164259</link>
      <description>&lt;P&gt;It happens to everyone from time to time :).&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 09:59:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Preprocessor-ignores-defined-preprocessor-variables-in/m-p/1443185#M164259</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2023-01-02T09:59:40Z</dc:date>
    </item>
  </channel>
</rss>

