Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: use of undeclared identifier 'emscripten_print_double' #15

Open
hustlibraco opened this issue Aug 13, 2015 · 3 comments
Open

error: use of undeclared identifier 'emscripten_print_double' #15

hustlibraco opened this issue Aug 13, 2015 · 3 comments

Comments

@hustlibraco
Copy link

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
@kripken
Copy link
Contributor

kripken commented Aug 13, 2015

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

@hustlibraco
Copy link
Author

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

@kripken
Copy link
Contributor

kripken commented Aug 13, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants