1. Download The windowsdlls pre-compiled by fftw from the official website.
Http://www.fftw.org/install/windows.html.
2. Create. lib "Import libraries ".
(1) VC ++: lib.exe. Run:
LIB/machine: i386/DEF: libfftw3-3.def
LIB/machine: i386/DEF: libfftw3f-3.def
LIB/machine: i386/DEF: libfftw3l-3.def
(2) Borland C ++: implib. Run:
Implib-A fftw3-3.lib libfftw3-3.dll
Implib-A fftw3f-3.lib libfftw3f-3.dll
Implib-A fftw3l-3.lib libfftw3l-3.dll
3. Put the libfftw3-3.dll, libfftw3f-3.dll, libfftw3l-3.dll into windows/system32;
Put the libfftw3-3.lib, libfftw3f-3.lib, libfftw3l-3.lib into the Lib folder in VC;
Put fftw3.h into the include folder in VC
4. Import the database into the Compiler
Method 1: modify "Object/Library module" in the "All configurations" Link "option in the project configuration, and add
Libfftw3-3.lib libfftw3f-3.lib libfftw3l-3.lib
Method 2: # pragmacomment (Lib, "libfftw3-3.lib ")
# Pragmacomment (Lib, "libfftw3f-3.lib ")
# Pragmacomment (Lib, "libfftw3l-3.lib ")