If there is not a main() method, then LLVM and emscripten might remove methods because they don't see them being called. You can use EMSCRIPTEN_KEEPALIVE to make sure methods remain alive, see the FAQ. Or, if you use the webidl binder or embind, they will be kept alive automatically.
- Alon On Wed, Jun 3, 2015 at 4:13 PM, <[email protected]> wrote: > I try to convert Leptonica 1.70 library from C to js using Emscripten.. > emconfigure and emmake run without issue..I get on debug rep, a file > 'liblept.a' 7730420 big.. > with it, emcc return a liblept.html file 102647 big and a liblept.js file > 326818 (not so huge ..) > > My issue is...well I find no one method of the librairy on the js file ! > One idea about this ? > > > > -- > 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 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.
