title: How to use include statement in Fortran 90?
body: <p>I have some .h files that are used for some modules in FORTRAN 77 (which I haven't written myself). I want to write a new routine in Fortran 90 and use such .h files. 
  I've tried to use <code>include 'foo.h'</code>, when I try to compile ( using ifort Version 13.0.0.079 Build 20120731) I get the following error:</p>
  
  <p><code>Syntax error, found IDENTIFIER 'FOO' when expecting one of: ( % [ : . = =&gt;
  C     FOO COMMOM</code></p>
  
  <p>I've also tried to use <code>include foo.h</code>, what gives me the following errors:
  <code>error #5082: Syntax error, found IDENTIFIER 'FOO' when expecting one of: &lt;CHAR_CON_KIND_PARAM&gt; &lt;CHAR_NAM_KIND_PARAM&gt; &lt;CHARACTER_CONSTANT&gt;
    INCLUDE FOO.h
  ----------^</code></p>
  
  <p><code>error #6274: This statement must not appear in the specification part of a module
    INCLUDE foo.h
  --^</code></p>
  
  <p><code>error #6236: A specification statement cannot appear in the executable section.
  !$ use omp_lib
  ---^</code></p>
  
  <p><code>error #6236: A specification statement cannot appear in the executable section.
    implicit none
  --^</code></p>
  
  <p><code>error #6456: This name must be a RECORD name.   [FOO]
    INCLUDE FOO.h
  ----------^</code></p>
  
  <p><code>error #6460: This is not a field name that is defined in the encompassing structure.   [H]
    INCLUDE foo.h</code>
  -----------------^</p>
  
  <p><code>error #6252: This format specifier is invalid.   [FOO]
    INCLUDE foo.h</code></p>
  
  <p>I guess <code>include</code> doesn't exist in F90. Is there something similar that allows one to use .h files?</p>