facebookarchive / caffe2

Caffe2 is a lightweight, modular, and scalable deep learning framework.
https://caffe2.ai
Apache License 2.0
8.42k stars 1.95k forks source link

caffe 2 win10 build failure #1622

Open SWX-TJ opened 6 years ago

SWX-TJ commented 6 years ago

@#If this is a build issue, please fill out the template below.

System information

CMake summary output


******** Summary ********
生成失败。

“C:\mysoftware\caffe\caffe2\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“C:\mysoftware\caffe\caffe2\build\caffe2\caffe2.vcxproj”(默认目标) (5) ->
(ClCompile 目标) ->
  C:\mysoftware\caffe\caffe2\caffe2\operators\fully_connected_op.cc(153): error C2971: “caffe2::`anonymous-namespace'::GetFCGradient”: 模板参数“GradientOp”:“caffe2::`anonymous-namespace'
::kFCGradient”: 包含非静态存储持续时间的变量不能用作非类型参数 [C:\mysoftware\caffe\caffe2\build\caffe2\caffe2.vcxproj]
  C:\mysoftware\caffe\caffe2\caffe2\operators\fully_connected_op.cc(154): error C2971: “caffe2::`anonymous-namespace'::GetFCGradient”: 模板参数“GradientOp”:“caffe2::`anonymous-namespace'
::kFCTransposedGradient”: 包含非静态存储持续时间的变量不能用作非类型参数 [C:\mysoftware\caffe\caffe2\build\caffe2\caffe2.vcxproj]
ctraina commented 6 years ago

I had the same issue and the build problems were resolved by cloning the latest version of the repo.