CGLemon / Sayuri

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

window10 compile error #8

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

C:\Users\mong\AppData\Local\Temp\ccCYLsP0.o:convolution.cc:(.text+0x0): multiple definition of `Convolution<1u>::Forward(unsigned long long, unsigned long long, unsigned long long, std::vector<float, std::allocator > const&, std::vector<float, std::allocator > const&, std::vector<float, std::allocator >&, std::vector<float, std::allocator >&)' C:\Users\mong\AppData\Local\Temp\cc84MHSl.o:blas_forward_pipe.cc:(.text$_ZN11ConvolutionILj1EE7ForwardEyyyRKSt6vectorIfSaIfEES5_RS3S6[_ZN11ConvolutionILj1EE7ForwardEyyyRKSt6vectorIfSaIfEES5_RS3S6]+0x0): first defined here collect2.exe: error: ld returned 1 exit status

CGLemon commented 1 year ago

That is weird. I got this github side. Where is your WinGW from? I want to test your GCC version on my computer. Thanks!

mc-mong commented 1 year ago

x86_64-posix-seh

x86_64-posix-seh