• Kirill Smelkov's avatar
    libk calls -> libf but for libf is linked by main (for now?) · 462cb27f
    Kirill Smelkov authored
    wasm@deco:~/trydynlib$ make -B
    emcc -s WASM=0 -s SIDE_MODULE=1 -DLIBF_COMPILE -o libf_so.js libf.c
    emcc -s WASM=0 -s SIDE_MODULE=1 -DLIBK_COMPILE -o libk_so.js libk.c
    warning: unexpected number of arguments 0 in call to 'ffunc1', should be 1
    emcc -s WASM=0 -s MAIN_MODULE=1 -s RUNTIME_LINKED_LIBS="['libk_so.js', 'libf_so.js']" -o prog.js prog.c
    warning: unexpected number of arguments 0 in call to 'kfunc1', should be 1
    
    wasm@deco:~/trydynlib$ node prog.js
    prog!
    libf.ffunc1
    libk.kfunc1 -> 12
    462cb27f
libf.c 91 Bytes