2016-06-11 68 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> 
相關問題