我刚刚将我的 Mac OS 更新为 Maverick,它似乎坏了一些东西!
我正在编写 c++ 代码并使用 boost.python 编写 python 前端。升级前我有工作代码,升级后我开始收到一个奇怪的链接错误:
darwin.link.dll /Users/Andy/software/boost-1.54.0/bin.v2/libs/python/build/darwin-4.8.1/debug/libboost_python.dylib
Undefined symbols for architecture x86_64:
"std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::size() const", referenced from:
boost::python::converter::(anonymous namespace)::wstring_rvalue_from_python::extract(_object*) in builtin_converters.o
"std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::empty() const", referenced from:
boost::python::converter::(anonymous namespace)::wstring_rvalue_from_python::extract(_object*) in builtin_converters.o
"std::basic_string<char, std::char_traits<char>, std::allocator<char> >::data() const", referenced from:
boost::python::converter::arg_to_python<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::arg_to_python(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) in numeric.o
.... 类似错误的页面和页面。有谁知道发生了什么?