How to tell scons to use the C++11 standard

半城伤御伤魂 提交于 2019-12-04 04:19:26
Brady

Im not sure if SCONS_CXX_STANDARD is supported yet in SCons.

Instead, if you're using GCC 4.7 or later, try passing -std=c++11 to the compiler as follows:

env=Environment(CPPPATH='/usr/include/boost/',
                CPPDEFINES=[],
                LIBS=[],
                CXXFLAGS="-std=c++0x"
                )

As explained in this question, you may need -gnu++11

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!