Why does GCC not seem to have the filesystem standard library?
GCC v7 still does not implement <filesystem> but it does have the Filesystem Technical Specification which is in <experimental/filesystem> #include <experimental/filesystem> // for brevity namespace fs = std::experimental::filesystem; int main() { fs::path p = “/path/to/my/file”; // etc… } This is also available in GCC v6. To link with the library you need to add -lstdc++fs … Read more