
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? Best, Vicente

On 05/22/10 05:21, vicente.botet wrote:
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++ HTH. -Larry

----- Original Message ----- From: "Larry Evans" <cppljevans@suddenlink.net> To: <boost@lists.boost.org> Sent: Saturday, May 22, 2010 3:27 PM Subject: Re: [boost] How to build Boost with C++0x compilers
Oh yes, using cxxflags. I was locking for a specific Build feature such as c++0x=on common to all the compilers. Thanks, Vicente

On Sat, May 22, 2010 at 9:41 AM, vicente.botet <vicente.botet@wanadoo.fr> wrote:
Oh yes, using cxxflags. I was locking for a specific Build feature such as c++0x=on common to all the compilers.
It isn't clear to me yet that such a build feature is needed. VC++ isn't requiring any switches for their C++0x stuff. What are other compiler vendors doing? --Beman

----- Original Message ----- From: "Beman Dawes" <bdawes@acm.org> To: "boost" <boost@lists.boost.org> Sent: Saturday, May 22, 2010 6:33 PM Subject: Re: [boost] How to build Boost with C++0x compilers On Sat, May 22, 2010 at 9:41 AM, vicente.botet <vicente.botet@wanadoo.fr> wrote:
Oh yes, using cxxflags. I was locking for a specific Build feature such as c++0x=on common to all the compilers.
It isn't clear to me yet that such a build feature is needed. VC++ isn't requiring any switches for their C++0x stuff. What are other compiler vendors doing? --Beman _______________________________________________ Do you mean that when we compile with VC++ (version ??) we will implicitly have support for C++0x and that some of the the BOOST 0x related macros will be undefined? This means that we can not add in our library C++0x dependent code that is activated with a explicit switch. I would prefer that this is actived explicitly, at least for the moment. Thanks for the info Vicente

vicente.botet wrote:
This affects VC10 mainly. It has the features it has, and no way of turning them on or off. I guess this means that macros BOOST_NO_xxx will not be defined.
Wouldn't that be a library specific switch 'don't use even if available'? If the feature is available, and working properly, why not use it? Bo Persson
participants (5)
-
Andrew Sutton
-
Beman Dawes
-
Bo Persson
-
Larry Evans
-
vicente.botet