如何安装文件系统C++带有mingw的图书馆?

发布于 2025-01-23 17:59:29 字数 190 浏览 1 评论 0原文

对于一个新项目,我需要使用文件系统库,但是当我尝试包含它时,我的汇编失败,因为它找不到库。我正在使用Mingw安装GCC在Windows上编译,他的版本应为6.3。我可以肯定的是,从GCC 8+中,该库应包含在标准库中。我也试图在实验中找到它,但不能做到。有什么方法可以解决这个问题吗?喜欢安装较新版本的GCC或以任何其他方式包括此库?抱歉,我不习惯这种类型的事情。

For a new project i need use filesystem library but when I try to include it, my compilation fail cause it can't find the library. I'm compiling on Windows with gcc installed via minGW and his version should be 6.3. I know for sure that from gcc 8+ this library should be included in the standard one. I' ve also tried to find it in experimental but it can't do it. Is there any way to solve this problem? Like installing a newer version of gcc or including this library in any other way? Sorry but I'm not used to this type of thing.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

聆听风音 2025-01-30 17:59:29

C ++ 文件系统库是在C ++ 17中引入的,但是您的编译器可能被配置为默认情况下使用该语言的较早版本。尝试使用-std = C ++ 17选项。

The C++ filesystem library was introduced in C++17, but your compiler might be configured to use an earlier version of the language by default. Try using the -std=c++17 option.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文