Hi,

i'm getting the following error using the -lembind flag during compilation.

*wasm-ld: error: unable to find library -lembind-rtti*
emcc: error: '/mnt/e/programs/emscripten/linux/emsdk/upstream/bin/wasm-ld 
-o index2.wasm --whole-archive -lembind-rtti 
/tmp/emscripten_temp_giqvyx_7/PluginWrapper_0.o 
/tmp/emscripten_temp_giqvyx_7/test_1.o 
-L/mnt/e/programs/emscripten/linux/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic
 
-lGL -lal -lhtml5 -lstubs -lc -lcompiler_rt -lc++-noexcept 
-lc++abi-noexcept -ldlmalloc -lc_rt -lsockets --no-whole-archive -mllvm 
-combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm 
-disable-lsr --import-undefined --import-memory --strip-debug 
--export-dynamic --no-gc-sections --export-if-defined=main 
--export-if-defined=__start_em_asm --export-if-defined=__stop_em_asm 
--export=setThrew --export=stackSave --export=stackRestore 
--export=stackAlloc --export=__wasm_call_ctors --export=__errno_location 
--export=malloc --export=free --export=raise --export=fileno 
--export=memcpy --export=ntohs --export=htons --export=_get_tzname 
--export=_get_daylight --export=_get_timezone --export=__dl_seterr 
--export=emscripten_builtin_malloc --export=strlen --export=saveSetjmp 
--export=emscripten_builtin_free --export=htonl --export=sleep 
--export=memalign --export=emscripten_main_thread_process_queued_calls 
--export=memcmp --export=__cxa_is_pointer_type --export=__cxa_can_catch 
--experimental-pic -pie -z stack-size=5242880 --initial-memory=16777216 
--no-entry --max-memory=16777216' failed (returned 1)

i'm using Ubuntu 20.04 on windows 11.
this is the version of emscripten i'm using:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 
3.1.0 (8e1e305519e1027726a48861a1fec5662f7e18a2)
clang version 14.0.0 (https://github.com/llvm/llvm-project 
1a929525e86a20d0b3455a400d0dbed40b325a13)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /mnt/e/programs/emscripten/linux/emsdk/upstream/bin

Note: if i remove the flag the files compile correctly. but i need to use 
bindings in my project.

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/ebe82f69-f378-46c9-843d-3499258d12e7n%40googlegroups.com.

Reply via email to