Hello ,
I got such errors when I compile a simple cxx :
#include <iostream>
void main() {
if (std::filesystem::exists("/somedir_name")) {
cout << something ....
}
}
then I build via :
#em++ -std=c++17 -DWASM=1 -o test.html test.cxx
in dockcross/web-wasm and got error:
test.cxx:9:23: error: no member named 'exists' in namespace
'std::__2::__fs::filesystem'
if (std::filesystem::exists("/root")) {
~~~~~~~~~~~~~~~~~^
1 error generated.
shared:ERROR: '/emsdk_portable/fastcomp/fastcomp/bin/clang++ -target
asmjs-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=39
-D__EMSCRIPTEN_tiny__=10 -D_LIBCPP_ABI_VERSION=2
-Werror=implicit-function-declaration -Xclang -nostdsysteminc -Xclang
-isystem/emsdk_portable/fastcomp/emscripten/system/include/libcxx -Xclang
-isystem/emsdk_portable/fastcomp/emscripten/system/lib/libcxxabi/include
-Xclang -isystem/emsdk_portable/fastcomp/emscripten/system/include/compat
-Xclang -isystem/emsdk_portable/fastcomp/emscripten/system/include -Xclang
-isystem/emsdk_portable/fastcomp/emscripten/system/include/libc -Xclang
-isystem/emsdk_portable/fastcomp/emscripten/system/lib/libc/musl/arch/emscripten
-Xclang -isystem/emsdk_portable/fastcomp/emscripten/system/local/include
-Xclang -isystem/emsdk_portable/.data/cache/asmjs/include -std=c++17
-DWASM=1 -DEMSCRIPTEN test.cxx -Xclang -disable-O0-optnone -Xclang
-isystem/emsdk_portable/fastcomp/emscripten/system/include/SDL -c -o
/tmp/emscripten_temp_rZBMf1/test_0.o -emit-llvm' failed (1)
thanks in advance for any help !
william
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/emscripten-discuss/8599474d-eaf8-46f0-a160-74648fea2753n%40googlegroups.com.