std::filesystem 使用时编译不过去

#include<filesystem>
namespace fs = std::filesystem;

解决方法:
https://stackoverflow.com/questions/53201991/how-to-use-stdfilesystem-on-gcc-8

实际是需要在编译的时候加上

--std=c++17 -lstdc++fs
posted @ 2022-11-25 16:52  simp00  阅读(179)  评论(0编辑  收藏  举报