polyfill-prototype-1 icon indicating copy to clipboard operation
polyfill-prototype-1 copied to clipboard

error: use of undeclared identifier 'emscripten_print_double'

Open hustlibraco opened this issue 10 years ago • 3 comments
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

hustlibraco avatar Aug 13 '15 04:08 hustlibraco

You probably need a newer emscripten, that API was added fairly recently (for this polyfill, in fact).

kripken avatar Aug 13 '15 04:08 kripken

Actually it's the newest version. Plus, looking very forward to this API.

hustlibraco avatar Aug 13 '15 06:08 hustlibraco

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.

kripken avatar Aug 13 '15 17:08 kripken