Skip to content

Loading wasm built with C++ fails: missing fd_close and fd_seek #145

@ivannp

Description

@ivannp

A simple wasm module loads when build with C, malloc and free, but fails to load when build with C++, new and delete. The runtime error from wasmer is:

Error: 3 link errors: (1 of 3) Import not found, namespace: wasi_snapshot_preview1, name: fd_close (2 of 3) Import not found, namespace: wasi_snapshot_preview1, name: fd_seek (3 of 3) Import not found, namespace: wasi_snapshot_preview1, name: fd_write

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