cudaMalloc error in CUDA C++ .cpp

Hello,

I’ve tried to use cuda fft function in C++ file with Visual Studio 2010/2012.
I set include directory for cufft.h and library directory/files for cudart.lib, cuda.lib, cufft.lib.

In building the project, the following errors occurred.
’error C3861: ‘cudaMalloc’: identifier not found ’
’error C3861: ‘cudaFree’: identifier not found ’

I’ve already checked https://devtalk.nvidia.com/default/topic/483880/cuda-in-c-cpp-files/

I would really appreciate any help or advice you can give me.

#include <cuda_runtime.h>

and make sure your project include paths include the necessary path to cuda header files (should be OK if you already have it set up for cufft.h

I could fix the problem with cuda_runtime.h and the CUFFT program works!!
Thank you very much for answering this beginner’s question :)