gpt4 book ai didi

opengl - 编译opengl红皮书9示例

转载 作者:行者123 更新时间:2023-12-02 11:00:17 24 4
gpt4 key购买 nike

我从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.

。 。 。

最佳答案

在CmakeLists.txt文件中添加以下行:

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=gnu++0x")

关于opengl - 编译opengl红皮书9示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44086259/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com