emscripten-core / emscripten-core/emscripten

What changed for proxying between 2.0.8 and 2.0.23?

Open
#14,312 14 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Hi, in emsdk 2.0.8 my emcc args inlcuded:
```
-s USE_PTHREADS=1
-s PROXY_TO_PTHREAD=1
-s MODULARIZE=1
-s EXPORTED_FUNCTIONS="[_main, _proxy_main]"
```

followed by javascript:

```
core.ccall('proxy_main', ...);
```

however building with 2.0.23 it complains `emcc: error: undefined exported symbol: "_proxy_main" [-Wundefined] [-Werror]`

I can remove the `_proxy_main` from the list, but then how to run main proxied?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.