0

I get the below compiler warning in Visual Studio C++ Community 2015 with Eigen linear algebra library version 3.3.2. Any ideas why this could be happening, or what I should be checking?

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

1 Answers1

0

If you look up the warning you will see that

#if SOME_NAME

will cause a warning if SOME_NAME is not defined. The replacing with '0' for '#if/#elif actually is the desired behavior. You can get rid of the warning by changing the code to defined(__CUDACC_VER__)

Note: You received this warning because you have a high (/W4 or /Wall) in your project. While this is usually a good thing, often with VS it kinda defeats the purpose (signal to noise ratio being too low).

Community
  • 1
  • 1
Avi Ginsburg
  • 10,323
  • 3
  • 29
  • 56