wasm file compiled from c++ is wrong
stkevintan opened this issue · comments
You should use WASM_EXPORT
#define WASM_EXPORT __attribute__((visibility("default")))
WASM_EXPORT void sort() {
...
}
Why can't we use extern "C" { ... }
like @ the original website?
Seriously, the original website is 100x better. It lets me write C++ and "just works".