我試圖用fftw鏈接我的項目,到目前爲止,我已經得到它來編譯,但沒有鏈接。正如網站所說,我生成了所有.lib文件(儘管我只使用雙精度),並將它們複製到C:\Program Files\Microsoft Visual Studio 9.0\VC\lib
,將.h文件複製到C:\Program Files\Microsoft Visual Studio 9.0\VC\include
,將.dll複製到C:\windows\system32
。在Visual Studio中fftw?
我已經複製了教程程序,我得到確切的錯誤是:
1>hw10.obj : error LNK2019: unresolved external symbol __imp__fftw_free referenced in function "bool __cdecl test(void)" ([email protected]@YA_NXZ)
1>hw10.obj : error LNK2019: unresolved external symbol __imp__fftw_destroy_plan referenced in function "bool __cdecl test(void)" ([email protected]@YA_NXZ)
1>hw10.obj : error LNK2019: unresolved external symbol __imp__fftw_execute referenced in function "bool __cdecl test(void)" ([email protected]@YA_NXZ)
1>hw10.obj : error LNK2019: unresolved external symbol __imp__fftw_plan_dft_1d referenced in function "bool __cdecl test(void)" ([email protected]@YA_NXZ)
1>hw10.obj : error LNK2019: unresolved external symbol __imp__fftw_malloc referenced in function "bool __cdecl test(void)" ([email protected]@YA_NXZ)
那麼,什麼可能是錯誤的與我的項目設置?謝謝!
謝謝!我期待它是這樣簡單的事情。 – 2010-04-28 15:53:07