首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >编译opengl红色书籍9示例

编译opengl红色书籍9示例
EN

Stack Overflow用户
提问于 2017-05-20 13:07:25
回答 1查看 251关注 0票数 0

我从github上拿了一些红色书籍的例子。在的领导下,我经营着cmake,一切都很好。当我运行make时,会得到以下错误:

代码语言:javascript
运行
复制
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.

。。。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-05-20 14:20:27

在CmakeLists.txt文件中添加这一行:

代码语言:javascript
运行
复制
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=gnu++0x")
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44086259

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档