Replies: 3 comments
-
Static libraries should work fine under emscripten. What is the error you are seeing? What is libgc.a? Bear in mind that emscripten cannot use object files or libraries from your system.. any libraries you want to use with emscripten would need to be compiled with the emcc compiler. |
Beta Was this translation helpful? Give feedback.
-
oh,I see, you mean libgc-dev has to build by emcc . |
Beta Was this translation helpful? Give feedback.
-
BTW you might stuggle to get boehm GC working under wasm/emscripten, because scanning the stack is much harder. The actual value and execution stack is not visible to the application, so you would need to deliberately spill all your stack pointers to linear memory. See WebAssembly/binaryen#4566 |
Beta Was this translation helpful? Give feedback.
-
Hello, how to link static lib in emcc?
example:
and emcc
how to link libgc?
and sysinfo
ubuntu 22.04
emcc 3.1.25
Beta Was this translation helpful? Give feedback.
All reactions