Skip to content

error: 'HEAPF32' was not exported. add it to EXPORTED_RUNTIME_METHODS in console #1640

@lilrooness

Description

@lilrooness

I am compiling a project with emscripten and cmake and I'm getting this error repeatedly printed to the console in chrome & firefox

Uncaught RuntimeError: Aborted('HEAPF32' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the Emscripten FAQ))

When I try to add HEAPF32 to EXPORTED_RUNTIME_METHODS I get a linker error saying that this symbol does not exist.

I am using these extra linker flags:

-s USE_GLFW=3 -s ASSERTIONS=1 -s WASM=1 -s ASYNCIFY -s GL_ENABLE_GET_PROC_ADDRESS=1 --preload-file res --preload-file proj

(res and proj are both directories)

I'm not quite sure how to proceed from here. Any suggestions are welcome.

I'm using the mingw toolset installed by emsdk: emsdk\mingw\7.1.0_64bit

I'm using latest emscripten: b2436aa tag: 4.0.21

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