Skip to content

Standalone programs without main are broken #9635

@kripken

Description

@kripken

STR:

#include <emscripten.h>
EMSCRIPTEN_KEEPALIVE void foo() {}

=>

$ ./emcc a.cpp -o a.wasm
error: undefined symbol: main
warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`

@sbc100 Is that related to the recent crt1 changes perhaps?

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