Skip to content

Additionally export malloc & free #24446

Closed Answered by akowi-sknobloch
akowi-sknobloch asked this question in Q&A
Discussion options

You must be logged in to vote

As I said my test Project was based on the wasm-example of the skia-safe project.
The example does work but does not support malloc & free and does not have any entry in the EXPORTED_FUNCTIONS.
When I add malloc and free to the EXPORTED_FUNCTIONS, the init function of the example fails with the error I posted.

But I already found a workaround by simply implementing my own functions for allocating and freeing memory in rust.
Therefore I no longer need to add malloc & free to the EXPORTED_FUNCTIONS and everything works.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by akowi-sknobloch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants