It's possible to compile and link programs that use std::filesystem with the g++ 9.2.0 compiler for Cygwin. For instance if I place the following program into a file name "x.cpp":
#include <iostream> #include <filesystem> int main() { std::filesystem::path p{"/tmp"}; std::cout << p << std::endl; } Then compile with: g++ -std=c++2a -Wall -O3 x.cpp It builds successfully. But running the output "a.exe" file exits immediately with exit code 127. It does not help if I also add "-lstdc++fs" to the build command. The output of "uname -a" is: CYGWIN_NT-6.1 price1 3.1.2(0.340/5/3) 2019-12-21 15:25 x86_64 Cygwin -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple