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
?