https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105657
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- That symbol is in libstdc++.so.6.0.30 so I assume you're linking to the wrong libstdc++.so, which is probably caused by -L/usr/lib/../lib Try adding -Wl,--trace to the g++ linker command and see which libstdc++.so is being used.