On Thu, 2011-03-31 at 11:49 +0200, Alberto Luaces wrote:
> Grahame Bowland writes:
> 
> > Hi all
> >
> > I'm shipping a version of OpenSceneGraph to users which has been
> > compiled with G++ 4.4.3. I've also compiled my app with this version of
> > G++.
> >
> > I'm now compiling the same OpenSceneGraph source code (2.8.2-rc4) with g
> > ++ 4.5.2. Running my g++ 4.4.3 compiled application against this library
> > crashes in a number of places, all within OpenSceneGraph. I've updated
> > libstdc++ to the 4.5.2 version. The problem definitely seems to be
> > within OSG, other C++ code runs fine.
> >
> > I realise this might be a whacky thing to do be doing. Does anyone have
> > pointers as to what might be going wrong - perhaps conditionals in
> > header files that evaluate differently with different versions of the
> > compiler?
> 
> Might be; you could the CMakeCache.txt files from both builds of OSG in
> order to check for different configurations. I'm thinking specifically
> about the builtin atomic support from OpenThreads.

Hi Alberto

Thanks very much, that was it! gcc-4.4.3 was failing the
_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS test, which succeeded for 4.5.2.
That changed the "Atomic" header file, which presumably changed the size
of a bunch of important classes.

Making sure that test fails solves my problem.

Thanks again!

Grahame

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to