erincatto / box2d

Box2D is a 2D physics engine for games
https://box2d.org
MIT License
8.05k stars 1.51k forks source link

Improve user settings capability. #673

Closed 1aam2am1 closed 2 years ago

1aam2am1 commented 3 years ago

Because I was implementing my own allocator, who had static store duration, i needed cpp file to be added to build process.

erincatto commented 3 years ago

Are you using Box2D as a shared library (DLL)? If not, can you use extern?

1aam2am1 commented 3 years ago

I'm using it as shared library. Therefore extern won't work.

erincatto commented 3 years ago

Why are you using it as a shared library?

1aam2am1 commented 3 years ago

It is faster on build time. I need to rebuild my program each time I change something. With shared library linker is faster as it don't need check if all symbols exists and connect them.

erincatto commented 3 years ago

How much faster is linking that way? How about the overhead of loading the shared library when you launch? Box2D is a smallish library.

erincatto commented 2 years ago

I'm not happy supporting box2d as a shared library. Too much feature creep. I would rather work on simulation and features and not build system stuff.