PascalPons / connect4

Connect 4 Solver
GNU Affero General Public License v3.0
273 stars 50 forks source link

Cannot compile on raspberry 3 ( g++ (Raspbian 8.3.0-6+rpi1) 8.3.0 ) #15

Closed fdamhaut closed 4 years ago

fdamhaut commented 4 years ago

I'm not a c/c++ expert so there might be something I overlooked while trying to compile it but i cannot manage to make a compile the solver.

I tried : - using changing the flag to g++-8 but it did not made any difference.

Error seems to be linked to position_t in the solver and more. cf images c41 c42 c43

PascalPons commented 4 years ago

Hi fdamhaut,

Your compilation error message seems to be related to the support of __int128 GCC non standard type. As described in the commented code source line 91-92, you can just replace the definition of position_t per: using position_t = uint64_t;

this would limit the size of possible board to WIDTH * (HEIGHT + 1) <= 64, but the standard board 7x6 will fit.

fdamhaut commented 4 years ago

Thank you very much