How to deal with 'cannot open file cufft.lib'

I am new to CUDA programming and just start to learn it.

When I learn fft, I have a problem that:

error LNK2019: unresolved referece to external symbol _cufftPlan1d@16 referenced in fucntion _main
error LNK2019: unresolved referece to external symbol _cufftExecC2C@16 referenced in fucntion _main
error LNK2019: unresolved referece to external symbol _cufftDestroy@4 referenced in fucntion _main

After I search the forum, I add the cufft.lib to the linker.

However, then I find:

error LNK1104: cannot open file ‘cufft.lib’

so add the
C:\Program files\NVIDIA GPU Computing Toolkit\CUDA\v7.0\lib\x64
to the library directory where cufft.lib is located.

Then again when I try to compile it shows exactly the same:

error LNK2019: unresolved referece to external symbol _cufftPlan1d@16 referenced in fucntion _main
error LNK2019: unresolved referece to external symbol _cufftExecC2C@16 referenced in fucntion _main
error LNK2019: unresolved referece to external symbol _cufftDestroy@4 referenced in fucntion _main

Could anyone help me solving this problem?

what kind of project are you building? 32-bit or 64-bit?

Also, CUDA provides sample projects that use cufft. You might take a look at how one of the sample VS projects are set up, to learn how to link cufft correctly.

Visual Studio creates 32-bit(Win32) C++ project as default.
but the latest CUDA Toolkit does not support 32-bit version of cuFFT.
so, switch architecture from Win32 to x64 on configuration manager.