I have been using boost.build or b2 for building a project. I am trying to add C++11 contructs like auto
and begin
but the standard invokation b2 release
in the directory with the Jamfile does not recognize these.
Boost. Jam (BJam) is a build tool based on FTJam, which in turn is based on Perforce Jam. It contains significant improvements made to facilitate its use in the Boost Build System, but should be backward compatible with Perforce Jam.
Right-click example in the Solution Explorer pane and select Properties from the resulting pop-up menu. In Configuration Properties > Linker > Additional Library Directories, enter the path to the Boost binaries, e.g. C:\Program Files\boost\boost_1_62_0\lib\. From the Build menu, select Build Solution.
Added the following in Jamroot
<toolset>gcc:<cxxflags>-std=gnu++0x
<toolset>clang:<cxxflags>-std=c++11
Seems to be working
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With