This forum has been archived. All content is frozen. Please use KDE Discuss instead.

'CUDACC_VER' is not defined as a preprocessor

Tags: None
(comma "," separated)
davidj
Registered Member
Posts
1
Karma
0
I get the below compiler warning in Visual Studio C++ Community 2015 with Eigen linear algebra library version 3.3.2:

eigen\src/Core/util/Macros.h(815): warning C4668: 'CUDACC_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'

I resolved it by replacing
"__CUDACC_VER__ " with "defined(__CUDACC_VER__)" on line 815 of Macros.h

so the new line 815 is now:
Code: Select all
#if EIGEN_COMP_MSVC_STRICT && (EIGEN_COMP_MSVC < 1900 ||  defined(__CUDACC_VER__))


I am not familiar enough with programming to know if this is a bug I should submit, or if I am doing something wrong, so wanted to ask here first before logging it as a bug.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
this has been fixed in 3.3.3


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]