On Tue, 2006-07-25 at 15:46 -0400, Daniel Larimer wrote: > While I believe that there is a way to control the link order of > static variables via build options
You don't have to control the link order, although it can solve the problem. Rather, you have to make sure that the order of execution of static declarations is deterministic, as described in the C++ specification, see [basic.start.init]. This can be done using the singleton pattern. FYI, this issue has come up before on this mailing list (a couple of years ago) under a different guise; the subject line was: > Subject: > [osg-user]seg faults with a global > ref_ptr > Date: > Fri, 10 Sep 2004 02:52:51 -0500 > (00:52 PDT) Regards, Marcus -- Mark Barnes COLLADA Project Lead, tel:+1.650.655.7342 Sony Computer Entertainment America http://research.scea.com _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
