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
#include<filesystem>
namespace fs = std::filesystem;
解决方法:
https://stackoverflow.com/questions/53201991/how-to-use-stdfilesystem-on-gcc-8
实际是需要在编译的时候加上
--std=c++17 -lstdc++fs