The EXPORTED_FUNCTIONS entry point must contain '_main' as well. Try adding
that to the list of exported functions?

2014-10-11 19:52 GMT+03:00 Sergey Kurdakov <[email protected]>:

> Hi,
>
> I have following question.
>
> I need to export function,  say
>
> void some_function();
>
> docs say there is a way
>
> -s EXPORTED_FUNCTIONS="['_some_function']"
>
> But as I use Visual Studio and SDK  and I see no entry in option -s in
> Properties dialogs, then I use Additional options  box to provide this line
> to compiler/linker and this  works to export function to compiled html/js
> file,
>
> however adding -s EXPORTED_FUNCTIONS="['_some_function']" to this
> Additional options input filed ( Options/Emcc Linker/Command
> line/Additional options )
> breaks linking to emscripten libraries ( for example no more SDL functions
> are visible in compiled js file, while there are in place when there is no
> this export option )
>
> Regards
> Sergey
>
> --
> 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.

Reply via email to