Boost logo

Boost :

Subject: Re: [boost] How to build Boost with C++0x compilers
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-05-22 09:41:35


----- Original Message -----
From: "Larry Evans" <cppljevans_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Saturday, May 22, 2010 3:27 PM
Subject: Re: [boost] How to build Boost with C++0x compilers

>
> On 05/22/10 05:21, vicente.botet wrote:
>> Hi,
>> I don't know how to build Boost with C++0x compilers. Which option must be used with bjam? Should the user.config file be modified?
>>
>> Can someone help me?
>>
> Vincente,
>
> Here's what I have near the top of my user-config.jam:
>
> -{--cut here--
> import toolset : using ;
>
> # Configure gcc
> #
>
> using gcc
> : 4.4_20090630
> : "/home/evansl/download/gcc/4.4-20090630/install/bin/g++"
> : <cxxflags>-std=gnu++0x
> ;
>
> using gcc
> : 4.4_20090630_v
> : "/home/evansl/download/gcc/4.4-20090630/install/bin/g++"
> : <cxxflags>-std=gnu++0x
> <cxxflags>-DCXX0X_VARIADIC_TEMPLATES
> ;
> -}--cut here--
>
> The second entry is for using variadic templates. Then:
>
> bjam --toolset=gcc-4.4_20090630_v
>
> or something like this is used to invoke the variadic compiler created
> in:
>
> home/evansl/download/gcc/4.4-20090630/install/bin/g++

Oh yes, using cxxflags. I was locking for a specific Build feature such as c++0x=on common to all the compilers.

Thanks,
Vicente


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk