digitalmars.D.learn - Loading of wasm function fails
- dokutoku (5/5) Apr 22 2019 I try to use wasm with LDC, but I can not load wasm functions
- Adam D. Ruppe (6/7) Apr 22 2019 I played with this last week, try adding
- dokutoku (3/10) Apr 22 2019 It was possible! Thank you!
I try to use wasm with LDC, but I can not load wasm functions with the following message even if I write it the same as the "Generating WebAssembly with LDC" page on wiki TypeError: exports.add is not a function How can I solve this problem?
Apr 22 2019
On Monday, 22 April 2019 at 10:36:23 UTC, dokutoku wrote:How can I solve this problem?I played with this last week, try adding -L--export-dynamic to your ldc command line to build. I mentioned it briefly on my blog last week http://dpldocs.info/this-week-in-d/Blog.Posted_2019_04_15.html#what-adam-is-working-on
Apr 22 2019
On Monday, 22 April 2019 at 13:05:03 UTC, Adam D. Ruppe wrote:On Monday, 22 April 2019 at 10:36:23 UTC, dokutoku wrote:It was possible! Thank you! I will check your blog regularly as well.How can I solve this problem?I played with this last week, try adding -L--export-dynamic to your ldc command line to build. I mentioned it briefly on my blog last week http://dpldocs.info/this-week-in-d/Blog.Posted_2019_04_15.html#what-adam-is-working-on
Apr 22 2019