-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vs2017 use libtensorflow-cpu-windows-x86_64-1.10.0-avx2 C++Compile Error #37
Comments
你先用1.8.0試試能不能用 1.9之後的cmake C++可能有問題 |
您的问题解决了吗,我遇到了和您一样的问题 |
@fo40225 I have the same error with 1.8.0, do i need to add some macro definition to my vs2017 project? |
@xinheblue |
@fo40225 think you |
Add NOMINMAX in Preprocessor Definitions (/DNOMINMAX) when compiling.from the following link |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use your ibtensorflow-cpu-windows-x86_64-1.10.0-avx2 on windows 10,the error is on follow.
Can you help me?Thank you.
\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(230): warning C4003: “max”宏的实参不足
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(229): error C2589: “(”:“::”右边的非法标记
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(230): error C2062: 意外的类型“unknown-type”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(230): error C2059: 语法错误:“)”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(230): error C2143: 语法错误: 缺少“;”(在“{”的前面)
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(231): warning C4003: “max”宏的实参不足
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(231): error C2589: “(”:“::”右边的非法标记
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(231): error C2062: 意外的类型“unknown-type”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(231): error C2059: 语法错误:“)”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(231): error C2143: 语法错误: 缺少“;”(在“{”的前面)
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(232): warning C4003: “max”宏的实参不足
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(232): error C2589: “(”:“::”右边的非法标记
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(232): error C2062: 意外的类型“unknown-type”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(232): error C2059: 语法错误:“)”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(232): error C2143: 语法错误: 缺少“;”(在“{”的前面)
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(233): warning C4003: “max”宏的实参不足
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(233): error C2589: “(”:“::”右边的非法标记
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(233): error C2062: 意外的类型“unknown-type”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(233): error C2059: 语法错误:“)”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(233): error C2143: 语法错误: 缺少“;”(在“{”的前面)
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(234): warning C4003: “max”宏的实参不足
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(234): error C2589: “(”:“::”右边的非法标记
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(234): error C2062: 意外的类型“unknown-type”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(234): error C2059: 语法错误:“)”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(234): error C2143: 语法错误: 缺少“;”(在“{”的前面)
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(235): warning C4003: “max”宏的实参不足
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(235): error C2589: “(”:“::”右边的非法标记
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(235): error C2062: 意外的类型“unknown-type”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(235): error C2059: 语法错误:“)”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\logging.h(235): error C2143: 语法错误: 缺少“;”(在“{”的前面)
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\platform\default\string_coding.h(44): warning C4267: “参数”: 从“size_t”转换到“tensorflow::uint32”,可能丢失数据
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\allocator.h(115): warning C4003: “max”宏的实参不足
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\allocator.h(115): error C2589: “(”:“::”右边的非法标记
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\allocator.h(115): note: 此诊断出现在编译器生成的函数“T *tensorflow::Allocator::Allocate(size_t,const tensorflow::AllocationAttributes &)”中
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\lib\gtl\array_slice_internal.h(172): error C2589: “(”:“::”右边的非法标记
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\lib\gtl\array_slice_internal.h(227): note: 参见对正在编译的 类 模板 实例化 "tensorflow::gtl::array_slice_internal::ArraySliceImplBase" 的引用
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(106): warning C4003: “max”宏的实参不足
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(106): error C2589: “(”:“::”右边的非法标记
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(106): error C2062: 意外的类型“unknown-type”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(106): error C2059: 语法错误:“)”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(107): warning C4003: “max”宏的实参不足
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(107): error C2589: “(”:“::”右边的非法标记
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(107): error C2062: 意外的类型“unknown-type”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(107): error C2059: 语法错误:“)”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(108): warning C4003: “max”宏的实参不足
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(108): error C2589: “(”:“::”右边的非法标记
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(108): error C2062: 意外的类型“unknown-type”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(108): error C2059: 语法错误:“)”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(109): warning C4003: “max”宏的实参不足
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(109): error C2589: “(”:“::”右边的非法标记
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(109): error C2062: 意外的类型“unknown-type”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\tensorflow\core\framework\tensor_shape.h(109): error C2059: 语法错误:“)”
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\unsupported\eigen\cxx11\src\tensor\tensor.h(76): warning C4554: “&”: 检查运算符优先级是否存在的可能的错误;使用括号阐明优先级
1>i:\tensorflow\windows\libtensorflow-cpu-windows-x86_64-1.10.0-avx2\include\unsupported\eigen\cxx11\src\tensor\tensormap.h(31): note: 参见对正在编译的 类 模板 实例化 "Eigen::Tensor<T,1,1,int>" 的引用
1> with
The text was updated successfully, but these errors were encountered: