【发布时间】:2018-04-12 09:34:15
【问题描述】:
几天前,我将我的 Ubuntu 16.04 服务器版 gcc 更新为 gcc 7.2 版本:
gcc version 7.2.0 (Ubuntu 7.2.0-1ubuntu1~16.04)
这应该是适用于 Ubuntu 的 gcc 的最新版本
现在,编译一本书的例子,
g++ -std=c++17 auto_parallel.cpp -oauto_parallel
auto_parallel.cpp:5:10: fatal error: execution: No such file or directory
include <execution>
~~~~~~~~~~
compilation terminated.
如何解决问题? 提前致谢。马可
【问题讨论】:
-
我认为 GCC 7.2 不支持执行策略。
"most updated version" != "contains all C++ features" -
libstdc++(GCC 使用的标准库)尚未实现
<execution>标头。另请参阅他们的C++17 status page,在“并行 TS 应该标准化”下的表格中
标签: header-files c++17 execution