- 07 Nov, 2018 11 commits
-
-
Kirill Smelkov authored
wasm@deco:~/trydynlib$ make -B emcc -s WASM=0 -O1 -s SIDE_MODULE=1 -DLIBK_COMPILE -o libk_so.js libk.c emcc -s WASM=0 -O1 -s MAIN_MODULE=1 -s RUNTIME_LINKED_LIBS="['libk_so.js']" -o prog.js prog.c wasm@deco:~/trydynlib$ node prog.js prog! libk.kfunc1 -> 12
-
Kirill Smelkov authored
-
Kirill Smelkov authored
wasm@deco:~/trydynlib$ make emcc -s WASM=1 -s SIDE_MODULE=1 -DLIBK_COMPILE -o libk_so.wasm libk.c emcc -s WASM=1 -s MAIN_MODULE=1 -s RUNTIME_LINKED_LIBS="['libk_so.wasm']" -o prog.js prog.c warning: unexpected number of arguments 0 in call to 'kfunc1', should be 1 wasm@deco:~/trydynlib$ ll итого 4128 -rw-r--r-- 1 wasm wasm 352 ноя 7 17:45 dso.h -rw-r--r-- 1 wasm wasm 56 ноя 7 17:26 libk.c -rw-r--r-- 1 wasm wasm 171 ноя 7 17:32 libk.h -rw-r--r-- 1 wasm wasm 507 ноя 7 17:47 libk_so.wasm -rw-r--r-- 1 wasm wasm 355 ноя 7 17:46 Makefile -rw-r--r-- 1 wasm wasm 2335565 ноя 7 17:47 prog.asm.js -rw-r--r-- 1 wasm wasm 144 ноя 7 17:00 prog.c -rw-r--r-- 1 wasm wasm 1215347 ноя 7 17:47 prog.js -rw-r--r-- 1 wasm wasm 645467 ноя 7 17:47 prog.wasm wasm@deco:~/trydynlib$ node prog.js prog! libk.kfunc1 -> 12
-
Kirill Smelkov authored
wasm@deco:~/trydynlib$ node prog.js prog! libk.kfunc1 -> 12
-
Kirill Smelkov authored
wasm@deco:~/trydynlib$ node prog.js loading libk_so.js symbol arguments symbol cleanups symbol asmGlobalArg symbol asmLibraryArg symbol runPostSets symbol setThrew symbol NAMED_GLOBALS prog!
-
Kirill Smelkov authored
Still the same: wasm@deco:~/trydynlib$ node prog.js prog! external function 'kfunc1' is missing. perhaps a side module was not linked in? if this function was expected to arrive from a system library, try to build the MAIN_MODULE with EMCC_FORCE_STDLIBS=1 in the environment external function 'kfunc1' is missing. perhaps a side module was not linked in? if this function was expected to arrive from a system library, try to build the MAIN_MODULE with EMCC_FORCE_STDLIBS=1 in the environment exception thrown: abort("external function 'kfunc1' is missing. perhaps a side module was not linked in? if this function was expected to arrive from a system library, try to build the MAIN_MODULE with EMCC_FORCE_STDLIBS=1 in the environment") at Error at jsStackTrace (/home/wasm/trydynlib/prog.js:1135:13) at stackTrace (/home/wasm/trydynlib/prog.js:1152:12) at abort (/home/wasm/trydynlib/prog.js:106462:44) at _kfunc1 (/home/wasm/trydynlib/prog.js:7564:27) at _main (/home/wasm/trydynlib/prog.js:30421:8) at Object.asm._main (/home/wasm/trydynlib/prog.js:105715:21) at Object.callMain (/home/wasm/trydynlib/prog.js:106292:30) at doRun (/home/wasm/trydynlib/prog.js:106350:60) at run (/home/wasm/trydynlib/prog.js:106364:5) at Object.<anonymous> (/home/wasm/trydynlib/prog.js:106487:1)
-
Kirill Smelkov authored
wasm@deco:~/trydynlib$ make emcc -s WASM=0 -s SIDE_MODULE=1 -DLIBK_COMPILE -o libk_so.js libk.c emcc -s WASM=0 -s MAIN_MODULE=1 -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! external function 'kfunc1' is missing. perhaps a side module was not linked in? if this function was expected to arrive from a system library, try to build the MAIN_MODULE with EMCC_FORCE_STDLIBS=1 in the environment external function 'kfunc1' is missing. perhaps a side module was not linked in? if this function was expected to arrive from a system library, try to build the MAIN_MODULE with EMCC_FORCE_STDLIBS=1 in the environment exception thrown: abort("external function 'kfunc1' is missing. perhaps a side module was not linked in? if this function was expected to arrive from a system library, try to build the MAIN_MODULE with EMCC_FORCE_STDLIBS=1 in the environment") at Error at jsStackTrace (/home/wasm/trydynlib/prog.js:1135:13) at stackTrace (/home/wasm/trydynlib/prog.js:1152:12) at abort (/home/wasm/trydynlib/prog.js:106460:44) at _kfunc1 (/home/wasm/trydynlib/prog.js:7562:27) at _main (/home/wasm/trydynlib/prog.js:30419:8) at Object.asm._main (/home/wasm/trydynlib/prog.js:105713:21) at Object.callMain (/home/wasm/trydynlib/prog.js:106290:30) at doRun (/home/wasm/trydynlib/prog.js:106348:60) at run (/home/wasm/trydynlib/prog.js:106362:5) at Object.<anonymous> (/home/wasm/trydynlib/prog.js:106485:1)
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-
Kirill Smelkov authored
-