[ODE] ODE and the STL
Jon Watte (ODE)
hplus-ode at mindcontrol.org
Sun Dec 24 17:32:53 MST 2006
STL and shared libraries DO NOT MIX.
If you use STL in ODE, then everyone will have to compile ODE
themselves, because they might have different STL versions (STLPort,
GNU, various versions, various Microsoft STL versions, etc etc ad infinum)
Similarly, an application that builds using ODE, will have to link
statically, or suffer all kinds of DLL Hell.
Whatever you do, KEEP STL OUT OF ODE!!!
David Walters wrote:
> Hi, I'm writing to gauge opinion on whether STL should be prevented
> from becoming a depency for ODE. This has come about because I've been
> kindly submitted a patch for the heightfield collider which claims to
> improve performance, stability etc. here:
> However it relies on STL list, vector and algorithm which create a new
> dependency on STL.
> Now personally I'm not too fond of the STL for my own projects, I find
> a bit too heavyweight and I'm worried about console games using ODE
> being put off by this - however I don't want to be rejecting patches
> based on my sole opinions - hence this post.
> I've gone into a little more detail in the patch report if you're interested.
> So, what does everyone else think? am I being over cautious - can STL
> be used without problems on all systems? or is it a good thing that
> it's not being used.
> ps. I've attached simpler list and array (vector) classes from my own
> engine to the patch so that some middle ground could be reached if
> dynamic arrays and lists are really needed.
> ODE mailing list
> ODE at q12.org
More information about the ODE