Mixing static library with dynamic #16864
Replies: 3 comments 1 reply
-
It should be fine to link static libraries into your main module. Static libraries such as What symbols are you seeing duplicated? Can you show the full failing link command and its output? |
Beta Was this translation helpful? Give feedback.
-
yes, here you go:
2>wasm-ld : error : duplicate symbol: swscanf 2>wasm-ld : error : duplicate symbol: wcsstr |
Beta Was this translation helpful? Give feedback.
-
Here is the command line of : I build my project by Emscripten Plugin for Visual Studio, and it is not expose the command line that build the Core.Emscripten.wasm above, but here is the flags that passed to the emcc:
and flags to the linker: --bind -s SIDE_MODULE I hope that it help |
Beta Was this translation helpful? Give feedback.
-
When i do the following I got an error:
emmake make
create a static module -someModule.a
a.wasm
linked with -s SIDE_MODULE.Now, when
main.wasm
linked with -s MAIN_MODULE and withsomeModule.a
anda.wasm
I get a duplicate symbol error because
someModule.a
andmain.wasm
has both probably linked withlibc
.but, as far I understand, SIDE_MODULE cannot be declared to static library -
someModule.a
.so , how it can be resolved if I need to keep the above modules structure - 2 dynamic modules and one static?
Beta Was this translation helpful? Give feedback.
All reactions