GEM icon indicating copy to clipboard operation
GEM copied to clipboard

Error generating

Open jessychen1016 opened this issue 4 years ago • 2 comments

In file included from /usr/local/cuda-10.1/include/cuda_runtime.h:115:0, from :0: /usr/local/cuda-10.1/include/crt/common_functions.h:74:24: error: token ""CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, and CUDACC_VER_BUILD instead."" is not valid in preprocessor expressions #define CUDACC_VER "CUDACC_VER is no longer supported. Use CUDACC_VER_MAJOR, CUDACC_VER_MINOR, and CUDACC_VER_BUILD instead." ^ /usr/include/eigen3/Eigen/src/Core/util/Macros.h:364:33: note: in expansion of macro ‘CUDACC_VER’ #if defined(CUDACC_VER) && CUDACC_VER >= 70500 && __cplusplus > 199711L

I got this error when catkin_make, please help. Thx

jessychen1016 avatar Mar 11 '21 08:03 jessychen1016

Problem Solved!! Follow the direction in the error message : /usr/local/cuda-10.1/include/crt/common_functions.h:74:24: error: token ""CUDACC_VER

Go to the file /usr/local/cuda-10.1/include/crt/common_functions.h and comment out line 74, have fun guys! :)

jessychen1016 avatar Mar 11 '21 08:03 jessychen1016

Perhaps updating eigen to the nightly version (currently 3.4.90) also works. CUDA 9 has not been released when the Eigen version is 3.3.4.

cyoahs avatar Dec 08 '21 05:12 cyoahs