https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100726
--- Comment #7 from cqwrteur <unlvsur at live dot com> --- (In reply to cqwrteur from comment #6) > (In reply to Jonathan Wakely from comment #5) > > (In reply to Andrew Pinski from comment #2) > > > I really doubt anything before Windows XP is supported really. > > > > I have no interest in making the filesystem library work on old versions of > > Windows. If we expect libstdc++ to be usable there, that function should > > just report an error on old versions. > > I do not know whether there is a setting to disable filesystem in dll when > we build GCC. > > --disable-libstdcxx-filesystem-ts does not seem to work. > > Just disable it. And do not define feature testing macro __cpp_lib_filesystem