undefined reference to `std::__cxx11::basic_string in Boost on Travis CI

天涯浪子 提交于 2019-12-04 18:41:46

You should try the adding -D_GLIBCXX_USE_CXX11_ABI=0 to the command line used to compile it, and see if this gets rid of the problem.

I think its quite possible that one or other of the g++/gcc you are calling is not version 6 ... otherwise this would be set to 1 by default iirc.

This is documented here

Maybe ISO C++ doesn't support it, according to the result of linker.You can try compile with g++ yourfiles.cc -std=c++11

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!