使用从macports安装的gcc-mp-4.7构建对Mountain Lion的提升出错

时间:2013-04-22 00:06:57

标签: boost macports gcc4.7 cpp-netlib

我遇到了一个非常毛茸茸的问题。我的最终目标是构建cpp-netlib。 cpp-netlib使用C ++ - 11,它在我的机器中抛出了原始boost构建的链接器错误。我使用我的机器中安装的默认gcc来构建boost的原因,它运行得很好。但是,遵循http://www.boost.org/doc/libs/1_53_0/more/getting_started/unix-variants.html {第5.2节以后}中给出的步骤似乎对我没有帮助。我收到这样的错误

..failed gcc.link.dll stage/lib/libboost_unit_test_framework.dylib...
...skipped <pstage/lib>libboost_thread.dylib for lack of <pbin.v2/libs/system/build/gcc-4.7      /release/threading-multi>libboost_system.dylib...
...skipped <pbin.v2/libs/chrono/build/gcc-4.7/release/threading-multi>libboost_chrono.dylib for 
lack of <pbin.v2/libs/system/build/gcc-4.7/release/threading-multi>libboost_system.dylib...
..skipped <pstage/lib>libboost_timer.dylib for lack of <pbin.v2/libs/chrono/build/gcc-4.7/release/threading-multi>libboost_chrono.dylib...
gcc.link.dll bin.v2/libs/date_time/build/gcc-4.7/release/threading-multi/libboost_date_time.dylib
ld: unknown option: -h
collect2: error: ld returned 1 exit status

我在user-config.jam中添加了我的依赖项,指定了mac-ports gcc路径并使用工具集gcc-4.7调用b2。我的最终目标是使用cpp-netlib进行http调用的应用程序,我也希望在我的应用程序中使用boost regex。

0 个答案:

没有答案