Nvcc output can not be started in the windows and can not be compiled normalizedCrossCorrelation.cu

Good day. I am trying to use code from cudahandbook

I tried to compile it on the Windows with the following options:

nvcc -I …/chLib -o a.exe -cuda normalizedCrossCorrelation.cu -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\Hostx64\x64”
normalizedCrossCorrelation.cu

when I am trying to start a.exe file:

“a.exe is not compatible with the version of Windows you’re running. Check your computer’s system information and then contact the software publisher.”

Also I tried to compile the same with jetson javier
with the following options
nvcc -I …/chLib -o a.out normalizedCrossCorrelation.cu

And it even not compiled :
…/chLib/chError.h(115): error: identifier “CUDA_ERROR_STUB_LIBRARY” is undefined

…/chLib/chError.h(117): error: identifier “CUDA_ERROR_DEVICE_NOT_LICENSED” is undefined

…/chLib/chError.h(122): error: identifier “CUDA_ERROR_JIT_COMPILATION_DISABLED” is undefined

…/chLib/chError.h(123): error: identifier “CUDA_ERROR_UNSUPPORTED_PTX_VERSION” is undefined

4 errors detected in the compilation of “/tmp/tmpxft_00002fb2_00000000-8_normalizedCrossCorrelation.cpp1.ii”

Please tell me what I am doing wrong

Thank you!