Linker error - Undefined symbols std::string::c_str() const on macos with libboost_thread?
问题 I installed boost 1.55.0 from homebrew on macos mavericks. Getting a linker exception - not finding std::string::c_str() which I don't understand why. Could this be a problem with homebrew? I tried compiling boost 1.55.0 directly from boost and it doesn't even build on macos. This little bit of code: #include <iostream> #include <unordered_map> #include <vector> #include <boost/thread/tss.hpp> typedef std::unordered_map<std::string, std::string> StringMap; static boost::thread_specific_ptr