kripken / box2d.js

Port of Box2D to JavaScript using Emscripten
1.33k stars 196 forks source link

fixed undefined symbol linker error #108

Closed slimbuck closed 5 years ago

slimbuck commented 5 years ago

Added -fno-rtti to the link step to solve the following error when compiling (on macos): error: undefined symbol: _ZTI15b2ContactFilter

Also suppress the wasm module being generated during asmjs compile and ignore closure compiler errors in release build.

kripken commented 5 years ago

Thanks @c0debon!

Btw, I'm surprised -fno-rtti fixes that error... any idea why that happens?

slimbuck commented 5 years ago

I'm not really sure @kripken. _ZTI15b2ContactFilter is the typeinfo for ContactFilter. Why that's being referenced at link stage, I haven't a clue.