This happened while preparing http://rodrigob.github.io/html5_demonstrations/boundaries_estimation/boundaries_estimation_dart.html
the symptom was that then the functions would return a black image (instead of the proper boundaries). Since the code was unchanged, this behaviour was as if the functions calling and/or memory allocation/reading/writing was not working properly. Since my "calledRun fetching hack" worked (and was a bit more comfortable to use in my codebase), I did not look further into this. Regards, rodrigob. On Tue, Aug 19, 2014 at 1:19 AM, Alon Zakai <[email protected]> wrote: > Nothing looks obviously wrong there. How do they misbehave? > > - Alon > > > > On Thu, Aug 14, 2014 at 4:53 PM, Rodrigo Benenson > <[email protected]> wrote: >> >> 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. > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "emscripten-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/emscripten-discuss/Tf8ox1NEPXA/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. -- 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.
