Skip to content

Need help #23504

@xalteropsx

Description

@xalteropsx
#include <emscripten.h>
#include <emscripten/bind.h>

void performWork() {
  int *i = new int;
}
int main(){
    return 0;
}
EMSCRIPTEN_BINDINGS(panda) {
  emscripten::function("performWork", &performWork);
}

emcc -lembind -o panda.wasm panda.cpp

Error loading WASM: TypeError: WebAssembly.instantiate(): Import #0 "env": module is not an object or function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions