-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
After c++ is compiled into wasm, the internal methods are not found and need to be imported by “imports” #7389
Comments
In a side module, system libraries are not linked in, so it calls out to things like |
Thank you very much for your reply. And how to import the required resources? @kripken |
You can look at a main module to see how it does it (compile it, run it to see that it works, then look at the code). There isn't much more in terms of docs for this - some of it is the normal libc API, some is internal APIs. |
Where is the main module, and how to find it? @kripken |
Thanks for your help very much, and I will close this case. @kripken |
C++ Code:
emcc:
emcc shp.cpp -Os -s WASM=1 -s SIDE_MODULE=1 -o shp.wasm
wasm file:
Error:
Here are some of the errors listed. I think it may be that
emcc
compiles without introducing the requiredlib
, which is the header file (.h
).The text was updated successfully, but these errors were encountered: