pipaP
Denoβ€’14mo ago
pipa

How to compile simple C++ file to use in deno via wasm

Hello Everyone!

I am doing advent of code this year in deno just as a random choice. I wanted to get my hands dirty with wasm so I coded the day4 problem in c++ so I can then just call that function from Deno. The purpose of this is just to start learning some WASM build process .

I have added the C++ code , please do not judge as I did this quick and not paying to much attention to best solution or coding guidelines πŸ˜„

I have tried multiple emcc commands with all failing.
Was this page helpful?