Compilation errors for C++17 <filesystem> on MinGW
问题 I want to play around with the new filesystem library that's now apart of the C++17 standard, however I can't get things to compile. Things I've already tried: Updating MinGW to 8.2.0 Compiling with g++ -std=c++17 test.cpp -o test Adding -lstdc++fs to the compilation (this does not work, I get the error c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: cannot find -lstdc++fs ) Using <filesystem> as well as <experimental\filesystem> Here is my simple test code just to try