更改boost.build jamfile以获得C ++ 11支持吗? [英] Change boost.build jamfile for C++11 support?

查看:78
本文介绍了更改boost.build jamfile以获得C ++ 11支持吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用boost.build或b2来构建项目.我正在尝试添加C ++ 11结构,例如 auto begin ,但是Jamfile目录中的标准调用 b2 release 无法识别这些.

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.

推荐答案

在Jamroot中添加了以下内容

Added the following in Jamroot

 <toolset>gcc:<cxxflags>-std=gnu++0x
 <toolset>clang:<cxxflags>-std=c++11

似乎可以正常工作

这篇关于更改boost.build jamfile以获得C ++ 11支持吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆