I've been attempting to link my project with fftw and so far, I've gotten it to compile, and finish "pass 1" of linking, but not finish. As the FFTW website said, I generated all the .lib files, and copied them to C:\Program Files\Microsoft Visual Studio 10.0\VC\lib\amd64 (since I'm compiling for x64, and this directory is included in my Library Directories), the .h file in my project and the .dll files in the directory of my project executable.
I've copied atutorial program, and the exact error I am getting is:
1>fftw_test.obj : error LNK2019: unresolved external symbol __imp__fftw_free referenced in function "int __cdecl fftw(void)" (?fftwt@@YAHXZ)
1>fftw_test.obj : error LNK2019: unresolved external symbol __imp__fftw_destroy_plan referenced in function "int __cdecl fftw(void)" (?fftwt@@YAHXZ)
1>fftw_test.obj : error LNK2019: unresolved external symbol __imp__fftw_execute referenced in function "int __cdecl fftw(void)" (?fftwt@@YAHXZ)
1>fftw_test.obj : error LNK2019: unresolved external symbol __imp__fftw_plan_dft_1d referenced in function "int__cdecl fftw(void)" (?fftwt@@YAHXZ)
1>fftw_test.obj : error LNK2019: unresolved external symbol __imp__fftw_malloc referenced in function "int__cdecl fftw(void)" (?fftwt@@YAHXZ)
I've tried:
Project -> Properties -> Linker -> Input -> Additional dependencies
contains libfftw3-3.lib
and dumpbin /exports libfftw3-3.lib generates _fftw_free _fftw_destroy_plan and the other functions that cannot be resolved.
Is it because it's looking for __imp_fftw_functionname and it's only finding _fftw_functionname functions?
Anyway, maybe this will help too: In pass 1, several times it says Searching C:...\VC\lib\amd64\libfftw3-3.lib: but it never says "found", "referenced", or "loaded" like it it does for other libraries.