title: compile FFTW fortran program
body: <p>I'm quite new to Unix and bash systems, therefore i'm sorry in advance if the question might look stupid.</p>
  
  <p>I've recently downloaded and installed the FFTW program on my iMac (following the guidelines in chapter 10 of <a href="http://www.fftw.org/fftw3.pdf" rel="nofollow">http://www.fftw.org/fftw3.pdf</a>). The installation has succeeded as i get no error when i do "make check".</p>
  
  <p>Now i wanted to start writing a small test program using the above mentioned libraries.</p>
  
  <p>The fortran code is very simple (and it is basically just a check of how to link the FFTW libraries to fortran):</p>
  
  <pre><code>program fft
  
  use, intrinsic :: iso_c_binding
  include 'fftw3.f03'
  
  implicit none
  
  end program fft
  </code></pre>
  
  <p>however when it comes to compile the program i'm completely clueless (basically because i'm not expert at all in compiling) what i typically do to compile is:</p>
  
  <pre><code>gfortran -o "executable_ename"  "main.f90"
  </code></pre>
  
  <p>However this is not working, in particular i get the following error:</p>
  
  <pre><code> fft.f90:4: Error: Can't open included file 'fftw3.f03'
  </code></pre>
  
  <p>If you could give me a hand with this problem, and maybe also explain what i'm missing and why it would be great.</p>