<?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 Problem with FFTW routines in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-FFTW-routines/m-p/907763#M11863</link>
    <description>Hello,&lt;BR /&gt;I'm trying to use the FFTW routines from MKL. I'm under Windows XP64, Visual Studio 2008, Intel Fortran Compiler 11.0.074. I'm trying to build the following example found on the forum:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; implicit none&lt;BR /&gt; include "fftw3.f"&lt;BR /&gt; &lt;BR /&gt; integer n&lt;BR /&gt; parameter (n=16)&lt;BR /&gt;&lt;BR /&gt; integer*8 plan, iplan&lt;BR /&gt;&lt;BR /&gt; double complex in, out&lt;BR /&gt; dimension in(N), out(N)&lt;BR /&gt;&lt;BR /&gt; integer i&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; print *,"n = ",n&lt;BR /&gt; print *,"input = "&lt;BR /&gt; do i=1,n&lt;BR /&gt; in(i) = (1.0, 0.0)&lt;BR /&gt; print *,in(i)&lt;BR /&gt; enddo&lt;BR /&gt;&lt;BR /&gt; print *,"fftw_fwd =      ",fftw_forward&lt;BR /&gt; print *,"fftw_bkwd =     ",fftw_backward&lt;BR /&gt; print *,"fftw_estimate = ",fftw_estimate&lt;BR /&gt;&lt;BR /&gt; !call dfftw_plan_dft_1d(plan, n,in,out,fftw_forward, FFTW_ESTIMATE)&lt;BR /&gt; call DFFTW_PLAN_DFT_1D(plan, n,in,out,fftw_forward, FFTW_ESTIMATE)&lt;BR /&gt; call dfftw_plan_dft_1d(iplan,n,out,in,fftw_backward,FFTW_ESTIMATE)&lt;BR /&gt;&lt;BR /&gt; print *,"address of fwd plan =   ",plan&lt;BR /&gt; print *,"address of bckwd plan = ",iplan&lt;BR /&gt;&lt;BR /&gt; call dfftw_execute(plan)&lt;BR /&gt;&lt;BR /&gt; print *, 'output after forward fft:'&lt;BR /&gt; do i=1,n&lt;BR /&gt; print *, out(i)&lt;BR /&gt; enddo&lt;BR /&gt;&lt;BR /&gt; call dfftw_execute(iplan)&lt;BR /&gt;&lt;BR /&gt; print *, 'after inverse fft:'&lt;BR /&gt; do i=1,n&lt;BR /&gt; print *, in(i)&lt;BR /&gt; enddo&lt;BR /&gt;&lt;BR /&gt; call dfftw_destroy_plan(plan)&lt;BR /&gt; call dfftw_destroy_plan(iplan)&lt;BR /&gt;&lt;BR /&gt; end&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I followed these steps:&lt;BR /&gt;1) created the fftw3xf_intel.lib with the command nmake lib64emt&lt;BR /&gt;2) created the project in VS2008 with the main file and the file mkl_fftw_examples.fi&lt;BR /&gt;3) added fftw3xf_intel.lib in the tab linker -&amp;gt; input -&amp;gt; additional dependencies&lt;BR /&gt;4) added the path of the fftw3xf_intel.lib in the tag linker -&amp;gt; general -&amp;gt; additional librariy directories&lt;BR /&gt;&lt;BR /&gt;When I try to build i get the following errors:&lt;BR /&gt;&lt;BR /&gt;Error	1	 error LNK2019: unresolved external symbol for_set_reentrancy referenced in function MAIN__	Source2.obj	&lt;BR /&gt;Error	2	 error LNK2019: unresolved external symbol for_write_seq_lis referenced in function MAIN__	Source2.obj	&lt;BR /&gt;Error	3	 error LNK2019: unresolved external symbol for_write_seq_lis_xmit referenced in function MAIN__	Source2.obj	&lt;BR /&gt;Error	4	 error LNK2019: unresolved external symbol for_emit_diagnostic referenced in function MAIN__	Source2.obj	&lt;BR /&gt;Error	5	 error LNK2001: unresolved external symbol _fltused	Source2.obj	&lt;BR /&gt;Error	6	 error LNK2001: unresolved external symbol _fltused	fftw3xf_intel.lib(tt_fftw_in_to_out.obj)	&lt;BR /&gt;Error	7	 error LNK2001: unresolved external symbol _fltused	fftw3xf_intel.lib(tt_fftw_norm.obj)	&lt;BR /&gt;Error	8	 error LNK2001: unresolved external symbol mainCRTStartup	LINK	&lt;BR /&gt;Error	9	 error LNK2019: unresolved external symbol malloc referenced in function fftw_plan_dft_1d	fftw3xf_intel.lib(fftw_plan_dft_1d.obj)	&lt;BR /&gt;Error	10	 error LNK2019: unresolved external symbol DftiCreateDescriptor referenced in function fftw_plan_dft_1d	fftw3xf_intel.lib(fftw_plan_dft_1d.obj)	&lt;BR /&gt;Error	11	 error LNK2019: unresolved external symbol DftiErrorClass referenced in function fftw_plan_dft_1d	fftw3xf_intel.lib(fftw_plan_dft_1d.obj)	&lt;BR /&gt;Error	12	 error LNK2019: unresolved external symbol DftiSetValue referenced in function fftw_plan_dft_1d	fftw3xf_intel.lib(fftw_plan_dft_1d.obj)	&lt;BR /&gt;Error	13	 error LNK2019: unresolved external symbol DftiFreeDescriptor referenced in function fftw_plan_dft_1d	fftw3xf_intel.lib(fftw_plan_dft_1d.obj)	&lt;BR /&gt;Error	14	 error LNK2001: unresolved external symbol DftiFreeDescriptor	fftw3xf_intel.lib(fftw_destroy_plan.obj)	&lt;BR /&gt;Error	15	 error LNK2019: unresolved external symbol free referenced in function fftw_plan_dft_1d	fftw3xf_intel.lib(fftw_plan_dft_1d.obj)	&lt;BR /&gt;Error	16	 error LNK2001: unresolved external symbol free	fftw3xf_intel.lib(fftw_destroy_plan.obj)	&lt;BR /&gt;Error	17	 error LNK2019: unresolved external symbol DftiCommitDescriptor referenced in function fftw_plan_dft_1d	fftw3xf_intel.lib(fftw_plan_dft_1d.obj)	&lt;BR /&gt;Error	18	 error LNK2019: unresolved external symbol d_forward_trig_transform referenced in function fftw_execute	fftw3xf_intel.lib(fftw_execute.obj)	&lt;BR /&gt;Error	19	 error LNK2019: unresolved external symbol printf referenced in function fftw_execute	fftw3xf_intel.lib(fftw_execute.obj)	&lt;BR /&gt;Error	20	 error LNK2019: unresolved external symbol d_backward_trig_transform referenced in function fftw_execute	fftw3xf_intel.lib(fftw_execute.obj)	&lt;BR /&gt;Error	21	 error LNK2001: unresolved external symbol d_backward_trig_transform	fftw3xf_intel.lib(tt_fftw_norm.obj)	&lt;BR /&gt;Error	22	 error LNK2019: unresolved external symbol DftiComputeBackward referenced in function fftw_execute	fftw3xf_intel.lib(fftw_execute.obj)	&lt;BR /&gt;Error	23	 error LNK2019: unresolved external symbol DftiComputeForward referenced in function fftw_execute	fftw3xf_intel.lib(fftw_execute.obj)	&lt;BR /&gt;Error	24	 error LNK2019: unresolved external symbol free_trig_transform referenced in function fftw_destroy_plan	fftw3xf_intel.lib(fftw_destroy_plan.obj)	&lt;BR /&gt;Error	25	 error LNK2019: unresolved external symbol _intel_fast_memcpy referenced in function tt_fftw_in_to_out	fftw3xf_intel.lib(tt_fftw_in_to_out.obj)	&lt;BR /&gt;Error	26	 error LNK2001: unresolved external symbol _intel_fast_memcpy	fftw3xf_intel.lib(tt_fftw_norm.obj)	&lt;BR /&gt;Error	27	 fatal error LNK1120: 20 unresolved externals	x64\Debug\FFTW_ex1.exe	&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If I try to compile for 32bit (after generating and linking the .lib obtained with the command nmake lib32) I instead get the following errors:&lt;BR /&gt;&lt;BR /&gt;Error	1	 error LNK2019: unresolved external symbol _DFFTW_PLAN_DFT_1D referenced in function _MAIN__	Source2.obj	&lt;BR /&gt;Error	2	 error LNK2019: unresolved external symbol _DFFTW_EXECUTE referenced in function _MAIN__	Source2.obj	&lt;BR /&gt;Error	3	 error LNK2019: unresolved external symbol _DFFTW_DESTROY_PLAN referenced in function _MAIN__	Source2.obj	&lt;BR /&gt;Error	4	 fatal error LNK1120: 3 unresolved externals	Debug\FFTW_ex1.exe	&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could someone please help me? Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Alessandro&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 08 May 2009 10:57:16 GMT</pubDate>
    <dc:creator>Alessandro</dc:creator>
    <dc:date>2009-05-08T10:57:16Z</dc:date>
    <item>
      <title>Problem with FFTW routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-FFTW-routines/m-p/907763#M11863</link>
      <description>Hello,&lt;BR /&gt;I'm trying to use the FFTW routines from MKL. I'm under Windows XP64, Visual Studio 2008, Intel Fortran Compiler 11.0.074. I'm trying to build the following example found on the forum:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; implicit none&lt;BR /&gt; include "fftw3.f"&lt;BR /&gt; &lt;BR /&gt; integer n&lt;BR /&gt; parameter (n=16)&lt;BR /&gt;&lt;BR /&gt; integer*8 plan, iplan&lt;BR /&gt;&lt;BR /&gt; double complex in, out&lt;BR /&gt; dimension in(N), out(N)&lt;BR /&gt;&lt;BR /&gt; integer i&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; print *,"n = ",n&lt;BR /&gt; print *,"input = "&lt;BR /&gt; do i=1,n&lt;BR /&gt; in(i) = (1.0, 0.0)&lt;BR /&gt; print *,in(i)&lt;BR /&gt; enddo&lt;BR /&gt;&lt;BR /&gt; print *,"fftw_fwd =      ",fftw_forward&lt;BR /&gt; print *,"fftw_bkwd =     ",fftw_backward&lt;BR /&gt; print *,"fftw_estimate = ",fftw_estimate&lt;BR /&gt;&lt;BR /&gt; !call dfftw_plan_dft_1d(plan, n,in,out,fftw_forward, FFTW_ESTIMATE)&lt;BR /&gt; call DFFTW_PLAN_DFT_1D(plan, n,in,out,fftw_forward, FFTW_ESTIMATE)&lt;BR /&gt; call dfftw_plan_dft_1d(iplan,n,out,in,fftw_backward,FFTW_ESTIMATE)&lt;BR /&gt;&lt;BR /&gt; print *,"address of fwd plan =   ",plan&lt;BR /&gt; print *,"address of bckwd plan = ",iplan&lt;BR /&gt;&lt;BR /&gt; call dfftw_execute(plan)&lt;BR /&gt;&lt;BR /&gt; print *, 'output after forward fft:'&lt;BR /&gt; do i=1,n&lt;BR /&gt; print *, out(i)&lt;BR /&gt; enddo&lt;BR /&gt;&lt;BR /&gt; call dfftw_execute(iplan)&lt;BR /&gt;&lt;BR /&gt; print *, 'after inverse fft:'&lt;BR /&gt; do i=1,n&lt;BR /&gt; print *, in(i)&lt;BR /&gt; enddo&lt;BR /&gt;&lt;BR /&gt; call dfftw_destroy_plan(plan)&lt;BR /&gt; call dfftw_destroy_plan(iplan)&lt;BR /&gt;&lt;BR /&gt; end&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I followed these steps:&lt;BR /&gt;1) created the fftw3xf_intel.lib with the command nmake lib64emt&lt;BR /&gt;2) created the project in VS2008 with the main file and the file mkl_fftw_examples.fi&lt;BR /&gt;3) added fftw3xf_intel.lib in the tab linker -&amp;gt; input -&amp;gt; additional dependencies&lt;BR /&gt;4) added the path of the fftw3xf_intel.lib in the tag linker -&amp;gt; general -&amp;gt; additional librariy directories&lt;BR /&gt;&lt;BR /&gt;When I try to build i get the following errors:&lt;BR /&gt;&lt;BR /&gt;Error	1	 error LNK2019: unresolved external symbol for_set_reentrancy referenced in function MAIN__	Source2.obj	&lt;BR /&gt;Error	2	 error LNK2019: unresolved external symbol for_write_seq_lis referenced in function MAIN__	Source2.obj	&lt;BR /&gt;Error	3	 error LNK2019: unresolved external symbol for_write_seq_lis_xmit referenced in function MAIN__	Source2.obj	&lt;BR /&gt;Error	4	 error LNK2019: unresolved external symbol for_emit_diagnostic referenced in function MAIN__	Source2.obj	&lt;BR /&gt;Error	5	 error LNK2001: unresolved external symbol _fltused	Source2.obj	&lt;BR /&gt;Error	6	 error LNK2001: unresolved external symbol _fltused	fftw3xf_intel.lib(tt_fftw_in_to_out.obj)	&lt;BR /&gt;Error	7	 error LNK2001: unresolved external symbol _fltused	fftw3xf_intel.lib(tt_fftw_norm.obj)	&lt;BR /&gt;Error	8	 error LNK2001: unresolved external symbol mainCRTStartup	LINK	&lt;BR /&gt;Error	9	 error LNK2019: unresolved external symbol malloc referenced in function fftw_plan_dft_1d	fftw3xf_intel.lib(fftw_plan_dft_1d.obj)	&lt;BR /&gt;Error	10	 error LNK2019: unresolved external symbol DftiCreateDescriptor referenced in function fftw_plan_dft_1d	fftw3xf_intel.lib(fftw_plan_dft_1d.obj)	&lt;BR /&gt;Error	11	 error LNK2019: unresolved external symbol DftiErrorClass referenced in function fftw_plan_dft_1d	fftw3xf_intel.lib(fftw_plan_dft_1d.obj)	&lt;BR /&gt;Error	12	 error LNK2019: unresolved external symbol DftiSetValue referenced in function fftw_plan_dft_1d	fftw3xf_intel.lib(fftw_plan_dft_1d.obj)	&lt;BR /&gt;Error	13	 error LNK2019: unresolved external symbol DftiFreeDescriptor referenced in function fftw_plan_dft_1d	fftw3xf_intel.lib(fftw_plan_dft_1d.obj)	&lt;BR /&gt;Error	14	 error LNK2001: unresolved external symbol DftiFreeDescriptor	fftw3xf_intel.lib(fftw_destroy_plan.obj)	&lt;BR /&gt;Error	15	 error LNK2019: unresolved external symbol free referenced in function fftw_plan_dft_1d	fftw3xf_intel.lib(fftw_plan_dft_1d.obj)	&lt;BR /&gt;Error	16	 error LNK2001: unresolved external symbol free	fftw3xf_intel.lib(fftw_destroy_plan.obj)	&lt;BR /&gt;Error	17	 error LNK2019: unresolved external symbol DftiCommitDescriptor referenced in function fftw_plan_dft_1d	fftw3xf_intel.lib(fftw_plan_dft_1d.obj)	&lt;BR /&gt;Error	18	 error LNK2019: unresolved external symbol d_forward_trig_transform referenced in function fftw_execute	fftw3xf_intel.lib(fftw_execute.obj)	&lt;BR /&gt;Error	19	 error LNK2019: unresolved external symbol printf referenced in function fftw_execute	fftw3xf_intel.lib(fftw_execute.obj)	&lt;BR /&gt;Error	20	 error LNK2019: unresolved external symbol d_backward_trig_transform referenced in function fftw_execute	fftw3xf_intel.lib(fftw_execute.obj)	&lt;BR /&gt;Error	21	 error LNK2001: unresolved external symbol d_backward_trig_transform	fftw3xf_intel.lib(tt_fftw_norm.obj)	&lt;BR /&gt;Error	22	 error LNK2019: unresolved external symbol DftiComputeBackward referenced in function fftw_execute	fftw3xf_intel.lib(fftw_execute.obj)	&lt;BR /&gt;Error	23	 error LNK2019: unresolved external symbol DftiComputeForward referenced in function fftw_execute	fftw3xf_intel.lib(fftw_execute.obj)	&lt;BR /&gt;Error	24	 error LNK2019: unresolved external symbol free_trig_transform referenced in function fftw_destroy_plan	fftw3xf_intel.lib(fftw_destroy_plan.obj)	&lt;BR /&gt;Error	25	 error LNK2019: unresolved external symbol _intel_fast_memcpy referenced in function tt_fftw_in_to_out	fftw3xf_intel.lib(tt_fftw_in_to_out.obj)	&lt;BR /&gt;Error	26	 error LNK2001: unresolved external symbol _intel_fast_memcpy	fftw3xf_intel.lib(tt_fftw_norm.obj)	&lt;BR /&gt;Error	27	 fatal error LNK1120: 20 unresolved externals	x64\Debug\FFTW_ex1.exe	&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If I try to compile for 32bit (after generating and linking the .lib obtained with the command nmake lib32) I instead get the following errors:&lt;BR /&gt;&lt;BR /&gt;Error	1	 error LNK2019: unresolved external symbol _DFFTW_PLAN_DFT_1D referenced in function _MAIN__	Source2.obj	&lt;BR /&gt;Error	2	 error LNK2019: unresolved external symbol _DFFTW_EXECUTE referenced in function _MAIN__	Source2.obj	&lt;BR /&gt;Error	3	 error LNK2019: unresolved external symbol _DFFTW_DESTROY_PLAN referenced in function _MAIN__	Source2.obj	&lt;BR /&gt;Error	4	 fatal error LNK1120: 3 unresolved externals	Debug\FFTW_ex1.exe	&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Could someone please help me? Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Alessandro&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 May 2009 10:57:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-FFTW-routines/m-p/907763#M11863</guid>
      <dc:creator>Alessandro</dc:creator>
      <dc:date>2009-05-08T10:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with FFTW routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-FFTW-routines/m-p/907764#M11864</link>
      <description>&lt;BR /&gt;Alessandro,&lt;BR /&gt;I tried to reproduce the problem you encountered but I couldn't.&lt;BR /&gt;Nevertheless, I uploaded to this thread the VS2008 project. You can find it into attachments (fftw_problem.zip )&lt;BR /&gt;You can get it and try to build on your side.&lt;BR /&gt;--Gennady&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jun 2009 15:11:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-with-FFTW-routines/m-p/907764#M11864</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-06-10T15:11:49Z</dc:date>
    </item>
  </channel>
</rss>

