I think that this can be related to the C++11 ABI as well, see this comment I posted: Issues linking with libtorch (C++11 ABI?), I’m facing similar issues with other libraries. The issue seems that libtorch is adding this definition to compilation _GLIBCXX_USE_CXX11_ABI=0
, which forces GCC to use old C++11 ABI, and this is incompatible with your boost dependency, hence the error you’re getting, because the std::string
was changed between old and new C++11 ABI.