-std=c++11 is required for llvm and clang. test.cpp #include <string> int main() { std::to_string(1); return 0; } # g++-5.4.0 -std=c++11 test.cpp test.cpp: In function 'int main()': test.cpp:4:9: error: 'to_string' is not a member of 'std' std::to_string(1); ^ # g++-6.3.0 -std=c++11 test.cpp # Note, Compile is successful with gcc-6.3.0. FYI, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193528
@toolchain, any idea how to fix it? FWICS, passing -D_GLIBCXX_USE_C99 works around the problem, so maybe there's an easy trick to make it enable that for -std=c++11?
*-fbsd is gone.