我从github那里拿走了红皮书的例子。 在debian jessie下我运行cmake,一切都还可以。 当我运行make时,我收到此错误:
In file included from /usr/include/c++/4.9/cstdint:35:0,
from /home/antonio/Documenti/CG/OGLPG-9th- Edition/lib/vdds.cpp:16:
/usr/include/c++/4.9/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.
。 。
答案 0 :(得分:0)
在CmakeLists.txt文件中添加以下行:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=gnu++0x")