如何在Qt Creator 5.13中使用std :: filesystem

时间:2019-09-09 14:58:50

标签: c++ qt

我正试图在Qt Creator和Clang中使用std::filesystem。从我所看到的,我需要在我的.pro文件中

LIBS += -lstdc++fs

但是即使这样,

#include <filesystem>

产生错误

  

严重错误:找不到“文件系统”文件。

我已经有

CONFIG += c++17

在我的专业文件中,并且已经在使用C ++ 17功能,没有问题。

版本信息:

Qt 5.13.1 (x86_64-little_endian-lp64 shared (dynamic) release build; 
by Clang 10.0.0 (clang-1000.11.45.5) (Apple)) on "cocoa" 
OS: macOS High Sierra (10.13) [darwin version 17.7.0]

Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 RTM HLE

0 个答案:

没有答案