Closed HinTak closed 3 years ago
Since it already checks g++ version and try a few flags https://github.com/ygrek/mldonkey/blob/333868a12bb6cd25fed49391dd2c3a767741cb51/config/configure.in#L1180 , it may be a good idea to include ...std=c++14
in any case?
Pull in https://github.com/ygrek/mldonkey/pull/63 as outlined
gcc 11 defaults to c++17, which introduces
std::byte
, which causes a lot of breakage when compilingsrc/utils/lib/CryptoPP.hsrc/utils/lib/CryptoPP.{cc,h}
.Apparently the problem has been anticipated upstream, https://cryptopp.com/wiki/Std::byte , and somewhat address with cryptopp 6.x . (while mldonkey has 5. x according to the header). For the time being, doing
CXXFLAGS=-std=c++14
works; but it is probably best upgrading...