2016-06-11 177 views
0

这是我想要制作的应用程序pokerstove。我正在按照如何在Linux平台上进行操作的说明进行操作,但在执行make命令时出现错误。我想从github上做一个应用程序,但得到一个错误

usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file 
requires compiler and library support for the ISO C++ 2011 standard. 
This support is currently experimental, and must be enabled with the 
-std=c++11 or -std=gnu++11 compiler options. 
#error This file requires compiler and library support for the \ 

我尝试使用标志

sudo make CPPFLAGS+="-std=c++11 ..." 

但它不工作。有人可以帮忙吗?

谢谢

+0

你不应该需要'sudo'运行'make'和实际上可能引入问题通过这样做。 – tripleee

回答

2

随着CMake的项目则可以通过它们传递给cmake可执行改变编译标志:

cmake "-DCMAKE_CXX_FLAGS=-std=c++11" <source-dir> 
相关问题