That file is present in a non-experimental path in libc++. The docs suggest it has not been experimental since c++17:
https://en.cppreference.com/w/cpp/filesystem Indeed, this compiles ok: ./em++ a.cpp -std=c++17 But you also need to remove experimental:: from the source code. - Alon On Thu, Jul 25, 2024 at 1:20 PM Dan C <danoveroc...@gmail.com> wrote: > Hi everyone, > > I'm using emscripten 3.1.3, and I can compile code with > *experimental/filesystem* header. However, when I try with emscripten > 3.1.63, the *experimental/filesystem* header is not available even if I > have the -std=gnu++11 flag. I'm wondering whether there is something else > we need to set to compile c++11 code with the latest emscripten. > > Thank, > Dan > > P.S. Here is a sample code. > ``` > #include <string> > #include <experimental/filesystem> > > namespace fs = std::experimental::filesystem; > > fs::path StdPath(const std::string& in) > { > return fs::path(in); > } > ``` > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to emscripten-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/25579959-d529-4057-8b6a-63b73dee0447n%40googlegroups.com > <https://groups.google.com/d/msgid/emscripten-discuss/25579959-d529-4057-8b6a-63b73dee0447n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpT4pHTVFH_A8Bg%3DHydDh-%2B-wd4Hpa%3DgmLwvPNC-ciNiYg%40mail.gmail.com.