I am trying to use filesystem. I have -std=c++11 -std=c++1y
in my CMakeLists.txt
. GCC version is 4.9.2
. However, I have got an error:
/home/loom/MyProject/src/main.cpp:5:35: fatal error: experimental/filesystem: No such file or directory
#include <experimental/filesystem>
^
compilation terminated.
What is the right way to use std::experimental::filesystem
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…