
So, I've installed Xcode 3.0, followed by Xcode 3.1.2. gcc is defaulting to 4.0, which builds Boost fine (using the configure & make install OR bjam routes). However, I would like to build boost with gcc 4.2, as installed with Xcode 3.1.2 - I've not managed to find the correct incantation yet to persuade Boost to use 4.2 vs 4.0 - help!!!! I guess I could just alter the gcc and g++ soft links in /usr/bin, but that seems...wrong. Assistance would be greatly appreciated. TIA!!! Stuart Dootson

I struggled with this too. I ended up changing the softlinks (in /usr/bin) for gcc and g++ to the gcc-4.2 and g++-4.2 binaries and naming the gcc toolset. Damien _____ From: Stuart Dootson [mailto:stuart.dootson@gmail.com] To: boost-users@lists.boost.org Sent: Sun, 08 Feb 2009 14:33:17 -0700 Subject: [Boost-users] Building on OS X So, I've installed Xcode 3.0, followed by Xcode 3.1.2. gcc is defaulting to 4.0, which builds Boost fine (using the configure & make install OR bjam routes). However, I would like to build boost with gcc 4.2, as installed with Xcode 3.1.2 - I've not managed to find the correct incantation yet to persuade Boost to use 4.2 vs 4.0 - help!!!! I guess I could just alter the gcc and g++ soft links in /usr/bin, but that seems...wrong. Assistance would be greatly appreciated. TIA!!! Stuart Dootson _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Add the following line to your user-config.jam. It works like a charm. using darwin : 4.2 ; -- Orhun Birsoy

AMDG Stuart Dootson wrote:
I'll give that a try - thanks.
On Mon, Feb 9, 2009 at 1:07 AM, Orhun Birsoy
wrote: Add the following line to your user-config.jam. It works like a charm.
using darwin : 4.2 ;
You'll probably need to add the compiler executable. Also, you should a three digit version. using darwin : 4.2.1 : g++-4.2 ; (e.g.) In Christ, Steven Watanabe

On Mon, Feb 9, 2009 at 3:21 PM, Steven Watanabe
AMDG
Stuart Dootson wrote:
I'll give that a try - thanks.
On Mon, Feb 9, 2009 at 1:07 AM, Orhun Birsoy
wrote: Add the following line to your user-config.jam. It works like a charm.
using darwin : 4.2 ;
You'll probably need to add the compiler executable. Also, you should a three digit version.
using darwin : 4.2.1 : g++-4.2 ;
(e.g.)
In Christ, Steven Watanabe
Thank you - that's worked Stuart Dootson
participants (4)
-
Damien Hocking
-
Orhun Birsoy
-
Steven Watanabe
-
Stuart Dootson