【发布时间】:2015-07-18 03:39:34
【问题描述】:
我正在尝试使用filesystem。我的CMakeLists.txt 中有-std=c++11 -std=c++1y。 GCC 版本是4.9.2。但是,我遇到了一个错误:
/home/loom/MyProject/src/main.cpp:5:35: fatal error: experimental/filesystem: No such file or directory
#include <experimental/filesystem>
^
compilation terminated.
std::experimental::filesystem的正确使用方式是什么?
【问题讨论】:
-
看起来它目前只能工作with head
标签: c++ c++11 filesystems g++ libstdc++