title: Missing FFTW libraries
body: <p>I'm trying to compile a code written in fortran90/95 and I'm getting this error:</p>
  
  <pre><code>user:~&gt; make
  ifort -O3 -lmpi -L/opt/local/intel/fftw/lib -I/opt/local/intel/fftw/include -        I/opt/sgi/mpt/mpt-2.03/include -L/opt/sgi/mpt/mpt-2.03/lib -o /test module_param.o incompact3d.o mesure.o schemas.o derive.o spectral.o tools.o filtre.o parametre.o forcage.o navier.o convdiff.o viv.o slfft3d_shift.o poisson.o
  slfft3d_shift.o: In function 'slfft3d_shift_':
  slfft3d_shift.f90:(.text+0x587e): undefined reference to 'rfftw3d_f77_mpi_create_plan_'
  slfft3d_shift.f90:(.text+0x58a3): undefined reference to 'rfftwnd_f77_mpi_local_sizes_'
  slfft3d_shift.f90:(.text+0x58cd): undefined reference to 'rfftwnd_f77_mpi_'
  slfft3d_shift.f90:(.text+0x58d9): undefined reference to 'rfftwnd_f77_mpi_destroy_plan_'
  slfft3d_shift.f90:(.text+0x91ca): undefined reference to 'rfftw3d_f77_mpi_create_plan_'
  slfft3d_shift.f90:(.text+0x91ef): undefined reference to 'rfftwnd_f77_mpi_local_sizes_'
  slfft3d_shift.f90:(.text+0x9219): undefined reference to 'rfftwnd_f77_mpi_'
  slfft3d_shift.f90:(.text+0x9225): undefined reference to 'rfftwnd_f77_mpi_destroy_plan_'
  slfft3d_shift.f90:(.text+0x111e7): undefined reference to 'rfftwnd_f77_one_real_to_complex_'
  make: *** [/test] Error 1
  </code></pre>
  
  <p>Here's the Makefile:</p>
  
  <pre><code>FC = ifort
  OPTFC = -O3 -lmpi -L/opt/local/intel/fftw/lib -I/opt/local/intel/fftw/include -      I/opt/sgi/mpt/mpt-2.03/include -L/opt/sgi/mpt/mpt-2.03/lib/test : module_param.o incompact3d.o mesure.o schemas.o derive.o spectral.o tools.o poisson.o filtre.o parametre.o slfft3d_shift.o forcage.o navier.o convdiff.o viv.o
  
      $(FC) $(OPTFC) -o /test module_param.o incompact3d.o mesure.o schemas.o derive.o spectral.o tools.o filtre.o parametre.o forcage.o navier.o convdiff.o viv.o slfft3d_shift.o poisson.o
  
  module_param.o : module_param.f90
      $(FC)  $(OPTFC) -c module_param.f90 incompact3d.o : incompact3d.f90
      $(FC)  $(OPTFC) -c incompact3d.f90 mesure.o : mesure.f90
      $(FC)  $(OPTFC) -c mesure.f90 spectral.o : spectral.f90
      $(FC)  $(OPTFC) -c spectral.f90 schemas.o : schemas.f90
      $(FC)  $(OPTFC) -c schemas.f90 derive.o : derive.f90
      $(FC)  $(OPTFC) -c derive.f90 tools.o : tools.f90
      $(FC)  $(OPTFC)  -c tools.f90 forcage.o : forcage.f90
      $(FC)  $(OPTFC) -c forcage.f90 navier.o : navier.f90
      $(FC)  $(OPTFC)  -c navier.f90 filtre.o : filtre.f90
      $(FC)  $(OPTFC) -c filtre.f90 parametre.o : parametre.f90
      $(FC)  $(OPTFC) -c parametre.f90 convdiff.o : convdiff.f90
      $(FC) $(OPTFC) -c convdiff.f90 poisson.o : poisson.f90
      $(FC) $(OPTFC) -c poisson.f90 slfft3d_shift.o : slfft3d_shift.f90
      $(FC) $(OPTFC) -c slfft3d_shift.f90 viv.o  : viv.f90
      $(FC) $(OPTFC) -c viv.f90
  </code></pre>
  
  <p>When I include the libraries required in the Makefile I get the following message:</p>
  
  <pre><code>user:~/test&gt; make
  ifort -O3 -lmpi -I/opt/local/intel/fftw/include -L/opt/local/gnu/fftw -        I/opt/sgi/mpt/mpt-2.03/include -L/opt/sgi/mpt/mpt-2.03/lib -I/opt/fftw/2.1.5.1/cnos/include     -L/opt/intel/composerxe-2011.0.084/mkl/include/fftw/fftw_f77.i -L/opt/fftw/2.1.5.1/cnos/lib     -I/opt/local/intel/fftw -I/opt/fftw/3.1.1/cnos/include -L/opt/fftw/3.1.1/cnos/lib -    I/usr/local/packages/nag/p3dfft-single/2.3/include -L/usr/local/packages/nag/p3dfft-    single/2.3/lib -o /home/u/guitar88/bin/teste module_param.o incompact3d.o mesure.o         schemas.o derive.o spectral.o tools.o filtre.o \
                      parametre.o forcage.o navier.o convdiff.o viv.o slfft3d_shift.o poisson.o -lm -L/opt/local/intel/fftw/lib -lsrfftw_mpi \
                      -lsrfftw -lsfftw_mpi -lsfftw
  ld: cannot find -lsrfftw_mpi
  make: *** [/test] Error 1
  </code></pre>
  
  <p>I'm using ifort compiler and I'm on a supercomputer environment working with MPI. Please, any clue of what is going on? Cheers.</p>