I encountered this issue when building GCC on Solaris.
For some reason, several of the string related functions like to_string and strtoull require that _GLIBCXX_USE_C99 be defined (at least going by the headers :
/usr/gcc/4.8/include/c++/4.8.2/bits/basic_string.h:#if ((__cplusplus >= 201103L) && defined(_GLIBCXX_USE_C99) \
)
I encountered this issue when building GCC on Solaris.
For some reason, several of the string related functions like to_string and strtoull require that _GLIBCXX_USE_C99 be defined (at least going by the headers :
)