No, Emscripten doesn't have any special setup required for using template code from headers.
If you want to expose any piece of code to JavaScript, you'll need to implement a C++<->JS interface for it so that you can call the functions from handwritten JS, either via embind or manual ccall/cwrap if the interface is C-like. 2014-03-07 11:16 GMT+02:00 Michael IV <[email protected]>: > If I need to use a header only template library in a code I want to > compile with emcscripten (or just want to compile to JS that library as > standalone) ,is it enough just include the headers?Or there is something > else I need to setup? > > -- > 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.
