tensorflow: Tensorflow 1.10 C++ project errors : logging.h error in line 229
I have generated libtensorflow_cc.so(V1.9, V1.10 and V1.11) file successully with bazel in Win10 enviroment, but when I use this TensorFlow API in VS2017, there are errors as bellow:


I also build TensorFlow1.8 C++ version API, and it used OK without these errors in VS2017.
C:\tf\tensorflow1.10\bazel-tensorflow1.10\tensorflow\core\platform\default\logging.h I don not know why it occur these errors. Tensorflow1.8 did not have these errors. I build tensorflow1.10 by bazel with Windows10-gpu version.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (5 by maintainers)
Add NOMINMAX in Preprocessor Definitions (/DNOMINMAX) when compiling.