Perhaps it is the way I am calling it. I am compiling my code+libraries to an html output, which normally automatically runs the main function when loaded. If I include anything in -s EXPORTED_FUNCTIONS, with no other changes, nothing happens when I load the HTML. What I mean is that I get a blank text box, and no output at all in the debug console. Is this by design, and do I need to alter the HTML to manually invoke the doRun function?
On Monday, March 3, 2014 6:19:22 PM UTC-8, Joel Croteau wrote: > > I have an application that displays data loaded from a server, and I would > like to be able to pass it information on what data to load. Ideally I > would like to have a text box on the page along with a button that calls a > member of a C++ class instance and tells it to update itself. This instance > is running continually via emscripten_set_main_loop. Embind is apparently > not supported in fastcomp, and if I try to export any functions via -s > EXPORTED_FUNCTIONS, the code apparently thinks it's a side module and > doesn't run. Can this be fixed? Failing that, I could pass the data to load > via the HTTP query string. Is there a simple way to access this from within > emscripten? > -- 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/groups/opt_out.
