Boost logo

Boost-Build :

Subject: Re: [Boost-build] Difference between toolset=darwin-4.5 & toolset=gcc-4.5 when building boost on OSX
From: Ian Emmons (ian_at_[hidden])
Date: 2013-08-20 11:53:32

On Aug 20, 2013, at 10:07 AM, Bioxydyn Dev <bioxydyn.dev_at_[hidden]> wrote:
> On Tue, Aug 20, 2013 at 2:58 PM, Ian Emmons <ian_at_[hidden]> wrote:
>> Joe,
>> I'm afraid that I can't directly answer your question, but one question about your issues looms large: Why are you installing your own GCC?
>> One possible answer is that you simply want a newer compiler. If that is indeed your situation, you should try "toolset=clang", which is Apple's newest and best compiler. (The darwin toolset, based on GCC 4.2 is currently maintained by Apple only for backwards compatibility.) Clang is, in my experience, an outstanding compiler and it has some of the most up-to-date support for C++11 available anywhere.
>> If your reason for using GCC 4.5 is something else, then I'm afraid you'll need help from some of the Boost.Build gurus themselves.
>> -Ian
> I'm a complete newbie when it comes to Macs and OSX so I may have approached this all wrong. I just wanted to build the latest version of boost with the latest version of gcc so I can use C++11 features. I never realised it would be so difficult.
> I installed gcc-4.8 for that reason. Are you saying that I shouldn't have installed gcc but clang instead?
> Can I install clang using homebrew?

Just open the App Store (it's the third entry in the Apple menu) and get Xcode (which is free). It includes clang as its default compiler.

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at