These DLLs were created by us, cross-compiled from GNU/Linux using MinGW; the 64-bit version is possible thanks to the mingw-w64 project. You should be able to call them from any compiler. In order to link to them from Visual C++, you will need to create .lib "import libraries" using the lib.exeprogram included with VC++. Run:
lib /def:libfftw3-3.def lib /def:libfftw3f-3.def lib /def:libfftw3l-3.def
On Visual Studio 2008 in 64-bit mode, and possibly in other cases, you may need to specify the machine explicitly:
lib /machine:x64 /def:libfftw3l-3.def
For Borland C++, you instead need to use Borland's implib
program, via (thanks to M. Lenarczyk):
implib -a fftw3-3.lib libfftw3-3.dll implib -a fftw3f-3.lib libfftw3f-3.dll implib -a fftw3l-3.lib libfftw3l-3.dll
除了下载解压文中的压缩包,剩下的就是生成lib了。
第一步:创建一个批处理文件,写入命令,执行命令和参数
第二部:在系统的vs中寻找相应的可执行文件,lib.exe和link.exe
第三部:如果缺少相应的dll,则与上一步一样在相同的地方找,我的目录是C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin
注:如果提示找不到lib,则删除;不能忘记批处理中的pause命令