polyfill-prototype-1
polyfill-prototype-1 copied to clipboard
error: use of undeclared identifier 'emscripten_print_double'
trafficstars
I try to run this prototype, I got the latest emscripten and make it, but I got this, Any tips showed to me to fix it?
[root@localhost polyfill-prototype-1]# make
emcc -DNDEBUG -O3 -std=c++11 -Wall -pedantic \
--memory-init-file 0 --llvm-lto 1 -s TOTAL_MEMORY=67108864 \
src/unpack.cpp \
-o jslib/load-wasm-worker.js
src/unpack.cpp:279:11: error: use of undeclared identifier 'emscripten_print_double'
len = emscripten_print_double(d, buf);
^
1 error generated.
ERROR root: compiler frontend failed to generate LLVM bitcode, halting
make: *** [jslib/load-wasm-worker.js] Error 1
You probably need a newer emscripten, that API was added fairly recently (for this polyfill, in fact).
Actually it's the newest version. Plus, looking very forward to this API.
Oh, sorry, my mistake. This is just in the wasm-polyfill-prototype branch in emscripten so far, which has not yet been merged to incoming or master.