|
Boost : |
Subject: Re: [boost] how to pass -std=c++14 to b2 while building boost libraries
From: Edward Diener (eldiener_at_[hidden])
Date: 2015-09-30 13:32:16
On 9/30/2015 4:38 AM, Frédéric Bron wrote:
> Hi,
>
> I would like to build a c++14 version of boost libraries on my system.
> I have the intel compiler (15.0.3) on a x86_64 linux machine
> (2.6.32-279.19.1.el6.x86_64).
>
> I do the following:
>
> 1. build b2
>
> CC="icc" CFLAGS="-O2 -DNDEBUG -xhost" CXX="icpc" CXXFLAGS="-O2
> -DNDEBUG -xhost -std=c++14" AR="ar" AS="as" RANLIB="ranlib"
> ./bootstrap.sh --without-icu
> --prefix=/myusr/icc-15.0.3-c++14-release/boost
> --with-toolset=intel-linux
>
> 2. edit user-config.jam
>
> My user-config.jam, located in the boost source directory contains:
> using intel-linux : : icpc : <compilerflags>-xhost <compilerflags>-std=c++14 ;
Should be "compileflags" and not "compilerflags".
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk