gpt4 book ai didi

ubuntu - 我正在尝试从 github 创建一个应用程序,但出现错误

转载 作者:行者123 更新时间:2023-12-04 19:02:04 25 4
gpt4 key购买 nike

这是我正在尝试制作的应用程序 pokerstove .我正在按照有关如何在 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 项目,您可以通过将编译标志传递给 cmake 来更改它们。可执行:

cmake "-DCMAKE_CXX_FLAGS=-std=c++11" <source-dir>

关于ubuntu - 我正在尝试从 github 创建一个应用程序,但出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37767771/

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