https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97369
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- If that's a linker error not a run time error, then it looks like you're not using the right GCC to link. It could be that you're compiling with GCC 6.3.0 but then using a different GCC to link, which doesn't have the required __cxx11 symbols in its libstdc++.so