StephanTLavavej / mingw-distro

MinGW distro build scripts.
494 stars 55 forks source link

libstdc++fs.a is not included #23

Closed tcbrindle closed 8 years ago

tcbrindle commented 8 years ago

GCC 6 includes an implementation of the Filesystem TS, but the symbols are in a separate static library, libstdc++fs.a (see "Experimental Library Extensions" section in this link, or Jonathan Wakely's answer on this SO question). This separate library is not present in the MinGW distro.

The documentation mentions that Windows support is "rudimentary", but it would be nice to be able to try it and see how rudimentary it is -- it may be sufficient for simple purposes, and if not, there's always boost::filesystem. The <experimental/filesystem> header is included in the distro so it would be nice to have the matching library too so things don't just fail at link time.

tcbrindle commented 8 years ago

Ooops, looking at this more closely, it seems I was mistaken -- the <experimental/filesystem> header does not seem to be included in GCC on Windows (I swear this failed at link time when I tried it though!).

If the headers aren't available then I can't complain about missing symbols. Closing this report, apologies for the noise :-)

StephanTLavavej commented 8 years ago

Heh, no problem.

fcharlie commented 6 years ago

GCC 9.1 maybe support filesystem on Windows https://github.com/gcc-mirror/gcc/commit/2fd48392d0a4ac3d1e217367ccb0ec0333d584d8