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.
Uh oh!
There was an error while loading. Please reload this page.
-
When i do the following I got an error:
emmake makecreate a static module -someModule.aa.wasmlinked with -s SIDE_MODULE.Now, when
main.wasmlinked with -s MAIN_MODULE and withsomeModule.aanda.wasmI get a duplicate symbol error because
someModule.aandmain.wasmhas 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