bupticybee / TexasSolver

🚀 A very efficient Texas Holdem GTO solver :spades::hearts::clubs::diamonds:
https://bupticybee.github.io/texassolver_page
GNU Affero General Public License v3.0
1.71k stars 304 forks source link

Fix build error on gcc version 11.2.1 #35

Closed Endle closed 3 years ago

Endle commented 3 years ago

Signed-off-by: Zhenbo Li litimetal@gmail.com

Endle commented 3 years ago

My environment snip

Target: x86_64-redhat-linux
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.1 20210728 (Red Hat 11.2.1-1) (GCC) 
GNU C17 (GCC) version 11.2.1 20210728 (Red Hat 11.2.1-1) (x86_64-redhat-linux)
    compiled by GNU C version 11.2.1 20210728 (Red Hat 11.2.1-1), GMP version 6.2.0, MPFR version 4.1.0-p13, MPC version 1.2.1, isl version isl-0.18-GMP

There is an upstream fix in googletest: https://github.com/google/googletest/pull/3024/files

I also added an #include

bupticybee commented 3 years ago

My environment snip

Target: x86_64-redhat-linux
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.1 20210728 (Red Hat 11.2.1-1) (GCC) 
GNU C17 (GCC) version 11.2.1 20210728 (Red Hat 11.2.1-1) (x86_64-redhat-linux)
  compiled by GNU C version 11.2.1 20210728 (Red Hat 11.2.1-1), GMP version 6.2.0, MPFR version 4.1.0-p13, MPC version 1.2.1, isl version isl-0.18-GMP

There is an upstream fix in googletest: https://github.com/google/googletest/pull/3024/files

I also added an #include

Oh I didn't know about this gcc issue. I will review and test it.

Thanks for you contribution.