When I compile this code:
class A {
public:
virtual int yo() { return 1; }
};
class C : public A {
public:
virtual int yo() { return 3; }
};
int main() {
C c;
A &a = c;
C &c2 = dynamic_cast<C&>(a);
return c2.yo();
}
with "emcc test.cc"
I get:
warning: unresolved symbol: __cxa_bad_cast
Is there some flag I need to pass to emcc to make this work? Or is this
just not supported? It looks like a bunch of __cxa_* functions are
implemented in library.js, would this need to be added there?
Thanks,
Ryan
--
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.