From https://github.com/gcc-mirror/gcc/commit/3acb929cc0beb79e6f4005eb22ee88b45e1cbc1d commit, C++ standard header <stacktrace>
exists things such as std::stacktrace_entry
but is not declared since _GLIBCXX_HAVE_STACKTRACE
is not defined neither.
I have tried this on https://godbolt.org/z/b9TvEMYnh but linker error is emitted once I have added the argument -lstd++_libbacktrace
(ofc, it was not found)
#include <stacktrace> // header found
int main() {
// can't use features like 'std::stacktrace_entry' and 'std::stacktrace'
}
What does this message mean from the commit description? :
For now, the new library is only built if --enable-libstdcxx-backtrace=yes is used.