https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97813
--- Comment #5 from Lennox Ho <lennoxhoe at gmail dot com> --- Thanks for the insight. I think the only potential blocker would be CreateSymbolicLinkW requires at least Vista/WinSer2008. I'm not able to figure out MinGW (or at least mingw-w64)'s OS requirements. I might look into contributing a patch to enable Windows symlink support sometime in the future. In the meantime, I have a patch for std::filesytem::hard_link_count for Windows. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113663 Thanks