Sorry about the spam. Figured out that I was missing to add '_main' to my EXPORTED_FUNCTIONS list.
Now the entry point works fine, but for some strange reason the other exported functions miss-behave when including main in my javascript library. I am using em++ the_main.cpp library_one.a library_two.a -s EXPORTED_FUNCTIONS="['_main', '_function_a', '_function_b']" --preload-file data -s DEMANGLE_SUPPORT=1 -o my_javascript_lib.js is there anything obviously wrong ? Using em++ library_one.a library_two.a -s EXPORTED_FUNCTIONS="[ '_function_a', '_function_b']" --preload-file data -s DEMANGLE_SUPPORT=1 -o my_javascript_lib.js and then the "calledRun fetching hack" works fine instead (later calls to function_a and function_b work as expected). Regards, rodrigob. -- 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]. For more options, visit https://groups.google.com/d/optout.
