我需要在Boost中使用i386,因为我正在使用另一个软件开发工具包。我尝试使用以下工具构建Boost
./b2 toolset=darwin architecture=x86 address-model=32来获取32位版本,但它给了我一个链接器错误:
ld: symbol(s) not found for architecture i386我也尝试过使用
port install boost但只能通过这种方式获得boost的x86_64版本。
有没有其他方法可以构建Boost,这样我就可以在Xcode中使用i386进行编译?
发布于 2011-10-10 05:09:41
我能够使用macports编译i386版本,方法是编辑位于
/opt/local/etc/macports/macports.conf并取消注释此行
build_arch i386在那之后我就打电话给
sudo port install boost瞧,现在它起作用了!
https://stackoverflow.com/questions/7683145
复制相似问题