Exception handling, emscripten v1.8.2 vs v1.20.0

62 views
Skip to first unread message

wowi

unread,
Jul 16, 2014, 10:23:43 PM7/16/14
to emscripte...@googlegroups.com
Hi all,

I have some C/C++ code which I successfully converted to javascript code using emscripten version 1.8.2. Everything works and ran beautifully.

However I decided to update emscripten today to 1.20.0 and now i get this linker error:

warning: unresolved symbol: _ZTVSt9exception

No code has changed. All I did was update emscripten. The linker error seems to be related to throwing exceptions. When I comment out the throw then I don't get the linker warning. My C++ code defines it's own exceptions like so:

#include <exception>
class myException:public std::exception
{
...
}

I get the unresolved symbol warning when I throw one of myException's. But again all this code compiled and linked fine in v1.8.2...what could have changed in v1.20.0 to cause this? Any recommended solutions?

Please help, urgent. Any help GREATLY appreciated. Thanks.

Alon Zakai

unread,
Jul 16, 2014, 11:15:00 PM7/16/14
to emscripte...@googlegroups.com
Can you make a small testcase, so we can try to reproduce the problem? Offhand I don't know why that would have regressed, in fact we fixed a bug that removed a warning similar to it.

- Alon



--
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 emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages