CGLemon / Sayuri

AlphaZero based engine for the game of Go (圍棋/围棋).
GNU General Public License v3.0
64 stars 7 forks source link

windows 10 compile error. #7

Open mc-mong opened 1 year ago

mc-mong commented 1 year ago

g++ -std=c++14 -ffast-math -I . -Wall -Wextra -lpthread .cc utils/.cc accuracy/.cc game/.cc mcts/.cc neural/.cc neural/blas/.cc neural/cuda/.cc pattern/.cc selfplay/.cc -o Sayuri -O3 -DNDEBUG -DWIN32 -I ../third_party/Eigen -DUSE_BLAS -DUSE_EIGEN neural/blas/winograd_convolution3.cc: In lambda function: neural/blas/winograd_convolution3.cc:53:29: error: 'SQ2' is not captured auto i3m1_2 = i3 (SQ2) + i1 (-SQ2 / 2.0f); ^~~ neural/blas/winograd_convolution3.cc:42:31: note: the lambda has no capture-default const auto multiply_bt = [](float& o0, float& o1, float& o2, ^ neural/blas/winograd_convolution3.cc:18:20: note: 'constexpr const double SQ2' declared here constexpr auto SQ2 = kSqrt2; ^~~ neural/blas/winograd_convolution3.cc: In lambda function: neural/blas/winograd_convolution3.cc:189:34: error: 'SQ2' is not captured auto t3m4 = (i3 - i4) * (SQ2); ^~~ neural/blas/winograd_convolution3.cc:182:31: note: the lambda has no capture-default const auto multiply_at = [](float& o0, float& o1, float& o2, float& o3, ^ neural/blas/winograd_convolution3.cc:174:20: note: 'constexpr const double SQ2' declared here constexpr auto SQ2 = kSqrt2; ^~~ What kind of error is it?

mingw64 : gcc version 8.1.0 (x86_64)

CGLemon commented 1 year ago

Thanks for reporting this bug. I push the new one into GitHub to fix this bug. Please try it.