<?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 How do I link FFTW to my Fortran code? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-FFTW-to-my-Fortran-code/m-p/906671#M11772</link>
    <description>&lt;P&gt;I have successfully been using FFTW with my Fortran 90 source code on a Windows XP IA-32 platform. I am creating a DLL for Matlab using their MEX function utility. I am using the .lib and .dll files that I downloaded from the FFTW website. In order to use FFTW I had to include INTERFACE statements in the subroutines that called the FFTW functions. The compile and link has been,&lt;/P&gt;
&lt;P&gt;mex myfortran.f90 libfftw3-3.lib&lt;/P&gt;
&lt;P&gt;with the libfftw3-3.dll file in the current directory.&lt;/P&gt;
&lt;P&gt;I am trying to use the MKL FFTW routines now and can not get the linker to recognize the FFTW functions. I have successfully made the "fftw3xf_ms.lib" library using the Intel Fortran 9.1 compiler and the Microsoft C-compiler. I have tried the following commands,&lt;/P&gt;
&lt;P&gt;mex myfortran.f90 fftw3xf_ms.lib mkl_s.lib&lt;/P&gt;
&lt;P&gt;mex myfortran.f90 fftw3xf_ms.lib mkl_s.lib mkl_ia32.lib&lt;/P&gt;
&lt;P&gt;with and without the INTERFACE commands in my source code and I still get the following errors,&lt;/P&gt;
&lt;P&gt;unresolved external symbol _dfftw_destroy_plan__&lt;/P&gt;
&lt;P&gt;unresolved external symbol _dfftw_cleanup__&lt;/P&gt;
&lt;P&gt;etc ... which are all of the FFTW functions calls.&lt;/P&gt;
&lt;P&gt;Could you please help me link the proper libraries (and syntax?) to get the MKL FFTW routines to my code?&lt;/P&gt;
&lt;P&gt;Thank you so much for your help. I very much appreciate your time!&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Nov 2008 14:38:13 GMT</pubDate>
    <dc:creator>david_sallngc_com</dc:creator>
    <dc:date>2008-11-12T14:38:13Z</dc:date>
    <item>
      <title>How do I link FFTW to my Fortran code?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-FFTW-to-my-Fortran-code/m-p/906671#M11772</link>
      <description>&lt;P&gt;I have successfully been using FFTW with my Fortran 90 source code on a Windows XP IA-32 platform. I am creating a DLL for Matlab using their MEX function utility. I am using the .lib and .dll files that I downloaded from the FFTW website. In order to use FFTW I had to include INTERFACE statements in the subroutines that called the FFTW functions. The compile and link has been,&lt;/P&gt;
&lt;P&gt;mex myfortran.f90 libfftw3-3.lib&lt;/P&gt;
&lt;P&gt;with the libfftw3-3.dll file in the current directory.&lt;/P&gt;
&lt;P&gt;I am trying to use the MKL FFTW routines now and can not get the linker to recognize the FFTW functions. I have successfully made the "fftw3xf_ms.lib" library using the Intel Fortran 9.1 compiler and the Microsoft C-compiler. I have tried the following commands,&lt;/P&gt;
&lt;P&gt;mex myfortran.f90 fftw3xf_ms.lib mkl_s.lib&lt;/P&gt;
&lt;P&gt;mex myfortran.f90 fftw3xf_ms.lib mkl_s.lib mkl_ia32.lib&lt;/P&gt;
&lt;P&gt;with and without the INTERFACE commands in my source code and I still get the following errors,&lt;/P&gt;
&lt;P&gt;unresolved external symbol _dfftw_destroy_plan__&lt;/P&gt;
&lt;P&gt;unresolved external symbol _dfftw_cleanup__&lt;/P&gt;
&lt;P&gt;etc ... which are all of the FFTW functions calls.&lt;/P&gt;
&lt;P&gt;Could you please help me link the proper libraries (and syntax?) to get the MKL FFTW routines to my code?&lt;/P&gt;
&lt;P&gt;Thank you so much for your help. I very much appreciate your time!&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2008 14:38:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-link-FFTW-to-my-Fortran-code/m-p/906671#M11772</guid>
      <dc:creator>david_sallngc_com</dc:creator>
      <dc:date>2008-11-12T14:38:13Z</dc:date>
    </item>
  </channel>
</rss>

