<?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 Include file compilation. in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-file-compilation/m-p/747974#M5331</link>
    <description>Hello everyone,&lt;BR /&gt;&lt;BR /&gt;I ported some code which was running with compaq visual fortran into a linux system. &lt;BR /&gt;&lt;BR /&gt;Here is a seemingly simple problem which taken sometime of mine. So I thought it may be useful to post in forums.&lt;BR /&gt;&lt;BR /&gt;Here is an include file, which includes a named COMMON block. &lt;BR /&gt;&lt;PRE&gt;[fxfortran]      COMMON /CKSTRT/ NMM , NKK , NII , MXSP, MXTB, MXTP, NCP , NCP1,
     &amp;amp;                NCP2, NCP2T,NPAR, NLAR, NFAR, NLAN, NFAL, NREV,
     &amp;amp;                NTHB, NRLT, NWL,  NRNU, NORD, MXORD,IcMM, IcKK,
     &amp;amp;                IcNC, IcPH, IcCH, IcNT, IcNU, IcNK, IcNS, IcNR,
     &amp;amp;                IcLT, IcRL, IcRV, IcWL, IcFL, IcFO, IcKF, IcTB,
     &amp;amp;                IcKN, IcKT, IcRNU,IcORD,IcKOR,NcAW, NcWT, NcTT,
     &amp;amp;                NcAA, NcCO, NcRV, NcLT, NcRL, NcFL, NcKT, NcWL,
     &amp;amp;                NcRU, NcRC, NcPA, NcKF, NcKR, NcRNU,NcKOR,NcK1,
     &amp;amp;                NcK2, NcK3, NcK4, NcI1, NcI2, NcI3, NcI4

[/fxfortran]&lt;/PRE&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This file when compiled with '&lt;B&gt;ifort -c'&lt;/B&gt; or '&lt;B&gt;ifort -free -c' &lt;/B&gt;gives following error&lt;B&gt;: &lt;BR /&gt;&lt;BR /&gt;------------------------------- ERROR--------------------&lt;BR /&gt;&lt;/B&gt;ckstrt.f(10): error #5082: Syntax error, found END-OF-FILE when expecting one of: &lt;LABEL&gt; &lt;END-OF-STATEMENT&gt; ; BLOCK BLOCKDATA PROGRAM MODULE TYPE COMPLEX BYTE ...&lt;BR /&gt;&lt;BR /&gt;^&lt;BR /&gt;-----------------------------------------------------------------------&lt;BR /&gt;Any ideas will be helpful. The format in the file is correct. &lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Inkant&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/END-OF-STATEMENT&gt;&lt;/LABEL&gt;</description>
    <pubDate>Tue, 13 Jul 2010 20:42:42 GMT</pubDate>
    <dc:creator>inkant</dc:creator>
    <dc:date>2010-07-13T20:42:42Z</dc:date>
    <item>
      <title>Include file compilation.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-file-compilation/m-p/747974#M5331</link>
      <description>Hello everyone,&lt;BR /&gt;&lt;BR /&gt;I ported some code which was running with compaq visual fortran into a linux system. &lt;BR /&gt;&lt;BR /&gt;Here is a seemingly simple problem which taken sometime of mine. So I thought it may be useful to post in forums.&lt;BR /&gt;&lt;BR /&gt;Here is an include file, which includes a named COMMON block. &lt;BR /&gt;&lt;PRE&gt;[fxfortran]      COMMON /CKSTRT/ NMM , NKK , NII , MXSP, MXTB, MXTP, NCP , NCP1,
     &amp;amp;                NCP2, NCP2T,NPAR, NLAR, NFAR, NLAN, NFAL, NREV,
     &amp;amp;                NTHB, NRLT, NWL,  NRNU, NORD, MXORD,IcMM, IcKK,
     &amp;amp;                IcNC, IcPH, IcCH, IcNT, IcNU, IcNK, IcNS, IcNR,
     &amp;amp;                IcLT, IcRL, IcRV, IcWL, IcFL, IcFO, IcKF, IcTB,
     &amp;amp;                IcKN, IcKT, IcRNU,IcORD,IcKOR,NcAW, NcWT, NcTT,
     &amp;amp;                NcAA, NcCO, NcRV, NcLT, NcRL, NcFL, NcKT, NcWL,
     &amp;amp;                NcRU, NcRC, NcPA, NcKF, NcKR, NcRNU,NcKOR,NcK1,
     &amp;amp;                NcK2, NcK3, NcK4, NcI1, NcI2, NcI3, NcI4

[/fxfortran]&lt;/PRE&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This file when compiled with '&lt;B&gt;ifort -c'&lt;/B&gt; or '&lt;B&gt;ifort -free -c' &lt;/B&gt;gives following error&lt;B&gt;: &lt;BR /&gt;&lt;BR /&gt;------------------------------- ERROR--------------------&lt;BR /&gt;&lt;/B&gt;ckstrt.f(10): error #5082: Syntax error, found END-OF-FILE when expecting one of: &lt;LABEL&gt; &lt;END-OF-STATEMENT&gt; ; BLOCK BLOCKDATA PROGRAM MODULE TYPE COMPLEX BYTE ...&lt;BR /&gt;&lt;BR /&gt;^&lt;BR /&gt;-----------------------------------------------------------------------&lt;BR /&gt;Any ideas will be helpful. The format in the file is correct. &lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Inkant&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/END-OF-STATEMENT&gt;&lt;/LABEL&gt;</description>
      <pubDate>Tue, 13 Jul 2010 20:42:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-file-compilation/m-p/747974#M5331</guid>
      <dc:creator>inkant</dc:creator>
      <dc:date>2010-07-13T20:42:42Z</dc:date>
    </item>
    <item>
      <title>Include file compilation.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-file-compilation/m-p/747975#M5332</link>
      <description>The COMMON statement must be followed by something, at least an END statement.&lt;BR /&gt;&lt;BR /&gt;If you get errors when INCLUDE-ing this file, it could be that your main code is free-format, and this file is fixed format. If so, and you need the include file to be compatible with fixed and free format, you can add an ampersand at column 73 for all but the last line. The result is an "intersection" format that is compatible with both forms. Column 73 is ignored in fixed format, and seen as a continuation in free format..</description>
      <pubDate>Tue, 13 Jul 2010 23:45:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-file-compilation/m-p/747975#M5332</guid>
      <dc:creator>joseph-krahn</dc:creator>
      <dc:date>2010-07-13T23:45:38Z</dc:date>
    </item>
    <item>
      <title>Include file compilation.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-file-compilation/m-p/747976#M5333</link>
      <description>By itself, the file that you showed is not a complete program unit (subroutine, function, block data or program) and, therefore, is not compilable on any operating system with any compiler.&lt;BR /&gt;&lt;BR /&gt;To avoid compiling an include fragment, one often gives the file a name with a file-type other than .f, .for or .f90; for example, .inc.&lt;BR /&gt;&lt;BR /&gt;If you showed a valid source code in which this file is INCLUDEd, and you ran into problems compiling it, that would have been something worthwhile to post here.</description>
      <pubDate>Wed, 14 Jul 2010 00:13:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-file-compilation/m-p/747976#M5333</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-07-14T00:13:39Z</dc:date>
    </item>
    <item>
      <title>Include file compilation.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-file-compilation/m-p/747977#M5334</link>
      <description>Thanks Joe and Mecej,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Both of you are right. I got confused by its "extension". The file comes with a commercial software.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;It does not need be compiled.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Inkant.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Jul 2010 02:15:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Include-file-compilation/m-p/747977#M5334</guid>
      <dc:creator>inkant</dc:creator>
      <dc:date>2010-07-14T02:15:02Z</dc:date>
    </item>
  </channel>
</rss>

