Ubuntu 我正试图从github创建一个应用程序,但出现了一个错误

Ubuntu 我正试图从github创建一个应用程序,但出现了一个错误,ubuntu,makefile,cmake,Ubuntu,Makefile,Cmake,这就是我正在尝试的应用程序。我正在遵循关于如何在linux平台上创建它的说明,但在执行make命令时出错 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 enab

这就是我正在尝试的应用程序。我正在遵循关于如何在linux平台上创建它的说明,但在执行make命令时出错

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 ..."
但它不起作用。有人能帮忙吗


谢谢

使用CMake project,您可以通过将编译标志传递给
CMake
可执行文件来更改编译标志:

cmake "-DCMAKE_CXX_FLAGS=-std=c++11" <source-dir>
cmake“-DCMAKE\u CXX\u标志=-std=c++11”

使用CMake项目,您可以通过将编译标志传递给
CMake
可执行文件来更改编译标志:

cmake "-DCMAKE_CXX_FLAGS=-std=c++11" <source-dir>
cmake“-DCMAKE\u CXX\u标志=-std=c++11”

您不需要
sudo
来运行
make
,这样做实际上可能会带来问题。您不需要
sudo
来运行
make
,这样做实际上可能会带来问题。