|
Boost Users : |
Subject: Re: [Boost-users] Boost Install on Mac OS X using GCC
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-01-14 13:03:32
At Fri, 14 Jan 2011 17:19:46 +0000,
Andrew wrote:
>
> Hello, I'm trying to install boost on mac using the gcc compiler. I
> encounter these errors during installation for all libraries:
>
> "g++" -Wl,-R
> -Wl,"/System/Library/Frameworks/Python.framework/Versions/2.6/lib" -Wl,-R
> -Wl,"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config"
> -o "stage/lib/libboost_prg_exec_monitor.dylib" -Wl,-h
> -Wl,libboost_prg_exec_monitor.dylib -shared -Wl,--start-group
> "/Users/andrew/boost/boost/bin.v2/libs/test/build/gcc-4.2.1/release/threading-multi/execution_monitor.o"
> "/Users/andrew/boost/boost/bin.v2/libs/test/build/gcc-4.2.1/release/threading-multi/debug.o"
> "/Users/andrew/boost/boost/bin.v2/libs/test/build/gcc-4.2.1/release/threading-multi/cpp_main.o"
> -Wl,-Bstatic -Wl,-Bdynamic -Wl,--end-group
>
> ...failed gcc.link.dll stage/lib/libboost_prg_exec_monitor.dylib...
> gcc.link.dll stage/lib/libboost_unit_test_framework.dylib
> ld: unknown option: -R
> collect2: ld returned 1 exit status
>
> I have no experience at all using boost in mac, and it is necessary that I
> use gcc.
> I am wondering if anyone could point me to a solution regarding this.
Try adding
toolset=darwin
to your bjam command-line.
HTH,
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net