https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97805
--- Comment #4 from John David Anglin <danglin at gcc dot gnu.org> --- We need: #include <climits> The define for LLONG_MIN is guarded by __STDC_VERSION__ in glimits.h: #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* Minimum and maximum values a `signed long long int' can hold. */ # undef LLONG_MIN # define LLONG_MIN (-LLONG_MAX - 1LL) # undef LLONG_MAX # define LLONG_MAX __LONG_LONG_MAX__ /* Maximum value an `unsigned long long int' can hold. (Minimum is 0). */ # undef ULLONG_MAX # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) #endif -std=c++11 doesn't appear to define __STDC_VERSION__.