首页 > 其他分享 >std::filesystem 使用时编译不过去

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

时间:2022-11-25 17:02:28浏览次数:61  
标签:std fs c++ 编译 lstd filesystem

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

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

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

--std=c++17 -lstdc++fs

标签:std,fs,c++,编译,lstd,filesystem
From: https://www.cnblogs.com/simp/p/16925680.html

相关文章