我已经下载了 boost 1.45.0,在我的 mac 上安装了 Python 3.1.3。我成功地使用 Python 构建了 Boost。为此,我必须编辑我的“project-config.jam”并添加“使用 python:3.1:/Library/Frameworks/Python.framework/Versions/3.1;” 进去。
在这一点上,一切似乎都很好。
现在,当我尝试在 xcode 项目中使用此库时,出现链接错误:
未定义符号:“boost::python::objects::make_nurse_and_patient(_object*, _object*)”,引用自:_object* boost::python::with_custodian_and_ward_postcall<0ul, 1ul, boost::python::default_call_policies>:: postcall<_object*>(_object* const&, _object*) in libFluxCore.a(Python.o) "boost::python::objects::enum_base::enum_base(char const*, _object* ( )(void const ), void* (*)(_object*), void (*)(_object*, boost::python::converter::rvalue_from_python_stage1_data*), boost::python::type_info, char const*)”,引用自:沙箱: libFluxCore.a(Python.o) 中的 :BindComponentState()
还有更多...
路径和库在我的项目中设置得很好。
有人知道会发生什么吗?谢谢。