Boost python and Mac Mavericks
Boost python and Mac Mavericks
我刚刚将我的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
....页面和类似错误的页面。 有谁知道发生了什么事?
在切换到特立独行之前,你在哪里使用 Xcode 5?
您可以尝试更改项目使用的标准库版本,因为 Xcode 的 LLVM 编译器中的默认值从 C++98 切换到 C++11。
要检查它,请在xcode,"构建设置"选项卡和" Apple LLVM 5.0 - 语言 - C++"中的目标设置中进行更改:
- C++ 语言方言从"编译器默认"到"GNU++98"
- C++ 标准库从"编译器默认"到"libstdc++(GNU C++标准库)"
相关文章:
- 在没有Xcode的情况下在Mac捆绑包中嵌入框架
- c++17文件系统::recursive_directory迭代器()在mac上没有给出这样的目录,但在windows上
- 如何使用CLion在Mac上创建一个新的.txt文件
- 如何使用Clang/GCC在Mac上为C/C++设置VSCode
- 在 Mac 上使用 CMAKE 将 FFTW 和 FFTWPP 链接到项目中时未定义的符号
- 有人安装"IITB Simplecpp in mac"吗?
- libprotobuf 检查在 Mac OS 上执行程序时失败
- 如何在 Mac 上使用 c++17 并行标准库算法?
- 在Mac 10.9 Mavericks上,clang配置与gcc链接配置不同吗
- g++ 无法在 Mac OS X Mavericks 上编译
- libc++ 标头位于 Mac OS X Mavericks 上的什么位置
- CGAL:如何成功编译和链接CGAL示例(在Mac OS X 10.9 Mavericks上)
- Boost python and Mac Mavericks
- 在 Mac 上构建 opencv 2.4.6 - Mavericks
- Makefile 在 mac os x Mavericks 上不起作用
- GMP 库 6.0.0 无法在 Mac OS Mavericks 上编译
- c++二叉树可以在CentOS 6中工作,但不能在Mac OSX Mavericks中工作
- 在Mac OS Mavericks上使用Xcode的clang++默认为lib=stdlibc++
- 在Mac OS X Mavericks上编译boost
- 如何在Mac OS X Mavericks上链接std c++库