Sayuri icon indicating copy to clipboard operation
Sayuri copied to clipboard

window10 compile error

Open mc-mong opened this issue 1 year ago • 2 comments

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_RS3_S6[ZN11ConvolutionILj1EE7ForwardEyyyRKSt6vectorIfSaIfEES5_RS3_S6]+0x0): first defined here collect2.exe: error: ld returned 1 exit status

mc-mong avatar Apr 07 '23 12:04 mc-mong

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

CGLemon avatar Apr 07 '23 13:04 CGLemon

x86_64-posix-seh

x86_64-posix-seh

mc-mong avatar Apr 07 '23 15:04 mc-mong