<?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 compile macro with ifort in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-macro-with-ifort/m-p/757820#M13307</link>
    <description>hi everyone,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I have a fortran source code with some macro:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;test.f90&lt;/DIV&gt;&lt;DIV&gt;test.inc&lt;/DIV&gt;&lt;DIV&gt;test_dlist_int.f90&lt;/DIV&gt;&lt;DIV&gt;diagnostic.inc&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I could compile them?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I tryed with:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;ifort *.f90 #include "testing.inc"&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;but it does not work&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;thank you very much&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 21 Sep 2011 10:18:41 GMT</pubDate>
    <dc:creator>diedro</dc:creator>
    <dc:date>2011-09-21T10:18:41Z</dc:date>
    <item>
      <title>compile macro with ifort</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-macro-with-ifort/m-p/757820#M13307</link>
      <description>hi everyone,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I have a fortran source code with some macro:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;test.f90&lt;/DIV&gt;&lt;DIV&gt;test.inc&lt;/DIV&gt;&lt;DIV&gt;test_dlist_int.f90&lt;/DIV&gt;&lt;DIV&gt;diagnostic.inc&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I could compile them?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I tryed with:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;ifort *.f90 #include "testing.inc"&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;but it does not work&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;thank you very much&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Sep 2011 10:18:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-macro-with-ifort/m-p/757820#M13307</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-09-21T10:18:41Z</dc:date>
    </item>
    <item>
      <title>compile macro with ifort</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-macro-with-ifort/m-p/757821#M13308</link>
      <description>&lt;P&gt;You can expand the include files (.inc) into your .f90 source files using &lt;STRONG&gt;#include&lt;/STRONG&gt; (with -fpp) or the Fortran &lt;STRONG&gt;INCLUDE&lt;/STRONG&gt; statement.&lt;/P&gt;&lt;P&gt;For example, your test.f90 might contain:&lt;/P&gt;&lt;P&gt;program sample&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;INCLUDE test.inc&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;--or--&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;#include "test.inc"&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;OTHER fortran="" statements=""&gt;&lt;BR /&gt;end&lt;/OTHER&gt;&lt;/P&gt;&lt;P&gt;And perhaps test_dist_int.f90 might contain:&lt;/P&gt;&lt;P&gt;subroutine test_dist_int()&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;INCLUDE diagnostic.inc&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;-- or --&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;#include "diagnostic.inc"&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;OTHER fortran="" statements=""&gt;&lt;BR /&gt;return&lt;BR /&gt;end&lt;/OTHER&gt;&lt;/P&gt;&lt;P&gt;To compile when using the INCLUDE form, use: &lt;STRONG&gt;ifort test_dist_int.f90 main.f90&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To compile when using the #include form, use: &lt;STRONG&gt;ifort -fpp test_dist_int.f90 main.f90&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If any of the .inc or .f90 source files include macros requiring preprocessing, then you can use either the INCLUDE or #include form shown above but you must add the &lt;STRONG&gt;-fpp&lt;/STRONG&gt; compiler option to expand the macros.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2011 11:01:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-macro-with-ifort/m-p/757821#M13308</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2011-09-21T11:01:25Z</dc:date>
    </item>
    <item>
      <title>compile macro with ifort</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-macro-with-ifort/m-p/757822#M13309</link>
      <description>hi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;thank you very much&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;It seems to work, however I have same debug problem. I think that it is my fault.&lt;/DIV&gt;&lt;DIV&gt;I have ti read carefullly the code.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;best Regards&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Sep 2011 13:21:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/compile-macro-with-ifort/m-p/757822#M13309</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-09-21T13:21:07Z</dc:date>
    </item>
  </channel>
</rss>

