On Tue, 2006-07-25 at 15:23 -0400, Daniel Larimer wrote: > > Upon closer inspection of include/osg/buffered_value I think I have > identified the REAL problem. There is a difference between Linux and OS X > when it comes to allocating static variables.
Interesting. There should be no functional difference since this behavior is defined by the C++ language. See the language reference section 3.6.2 [basic.start.init] for details. > On OS X the static variables such as s_extentions get allocated BEFORE > main(), but Linux doesn't allocate them until their first reference. C++ mandates that a static variable is initialized the first time control passes through its declaration. Both of these OS behaviors are permitted by C++ with some caveats. Again see [basic.start.init] and related sections. Can you point me at the static variables that are misbehaving? I'd like to take a quick look at the situation and offer some help. 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/
