blt4linux / blt4l

PAYDAY 2 SteamOS/Linux LUA loader.
Other
57 stars 14 forks source link

symbol std::__cxx11::basic_string…, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 #44

Closed johndrinkwater closed 7 years ago

johndrinkwater commented 7 years ago

Had this issue after compiling from source —on Ubuntu 15.10—,

payday2_release: relocation error:  /home/john/code/blt4l/build/libblt_loader.so: symbol
_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcRKS3_,
version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

Resolved it by defining -D_GLIBCXX_USE_CXX11_ABI=0 in CMakeLists.txt Not posting as a PR because I don’t know full ramifications for users on other distros..

RomanHargrave commented 7 years ago

This typically happens when your compiler attempts to link a different version of a library than it compiled a an object for. At least, if I recall correctly.