Open adapt-L opened 9 months ago
I don't see cyl_bessel_j defined in either musl (which emscripten uses for libc) to libc++ (the llvm C++ library which emscripten uses it's C++ stdlib).
I'm guessing that in both your working examples of gcc and clang that definition was coming from libstdc++ (the GNU++ library), which is not supported by emscripten.
So I think the answer is no, emscripten doesn't not support this function, because that function not part of the libraries on which emscripten is built.
Thanks. Is it possible to use glibc or libstc++ with emscripten?
Thanks. Is it possible to use glibc or libstc++ with emscripten?
I don't know of anyone who has tried that. I imagine it would be significant amount of work.
Version of emscripten/emsdk:
Here's an example c++ program that uses special math functions (smf.cpp):
Compiles natively with
g++ smf.cpp
orclang -lm -lstdc++ smf.cpp
. When I try to compile withem++ -v smf.cpp
, I get the following error: