SimpleCUFFT problem Getting erro

I am able to make the SDK and able to run the sample program… But if i try it individually i get error… Take for example for simpleCUFFT problem i m getting the following error…

/tmp/tmpxft_00002fa0_00000000-10.o: In function main': tmpxft_00002fa0_00000000-9.i:(.text+0x3a): undefined reference to cutCheckCmdLineFlag’
/tmp/tmpxft_00002fa0_00000000-10.o: In function runTest(int, char**)': tmpxft_00002fa0_00000000-9.i:(.text+0x344): undefined reference to cufftPlan1d’
tmpxft_00002fa0_00000000-9.i:(.text+0x36e): undefined reference to cufftExecC2C' tmpxft_00002fa0_00000000-9.i:(.text+0x398): undefined reference to cufftExecC2C’
tmpxft_00002fa0_00000000-9.i:(.text+0x482): undefined reference to cufftExecC2C' tmpxft_00002fa0_00000000-9.i:(.text+0x525): undefined reference to cutCompareL2fe’
tmpxft_00002fa0_00000000-9.i:(.text+0x56e): undefined reference to `cufftDestroy’
collect2: ld returned 1 exit status

Am I missing any files???

I’d suggest reviewing the Makefile for the app.

I had such problems as well - you need libraries included .

This one works well:

nvcc.exe -link -ccbin “C:\Program Files\Microsoft Visual Studio 8\VC\bin” -DWIN32 -D_DEBUG -D_CONSOLE -Xcompiler “/EHsc /W3 /nologo /Wp64 /Od /Zi /MDd /GR” -I"C:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc" -I"C:\CUDA\include" -L"C:\Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\common\lib" -LC:\CUDA\lib\ -lcufft -lcutil32 --opencc-options -LIST:source=on -keep

you have to copy files



to application’s directory

edit-sorry,this works on winXP, but for linux the problem is the same, just use different paths ( /usr/local/cuda … … )

I had the same probem…I only add the following line to my makefile and no more errors: