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. Robert Osfield writes: > Hi Grahame, > > Might the binary compatibility been broken between g++ 4.4.3 and 4.5.2? > This is also plausible; however I have not heard anything lately about an ABI break. Should that happen it may appear on gcc's website. > > In terms of a different g++ version causing problems directly in the > OSG code base, I'd suspect a bug in the compiler before a bug in the > OSG, as the OSG is used with a wide range of compilers without showing > significant problems with crashing. However, I'd look at the binary > compatibility side first, this would be the area that is most likely > to cause problems. Unfortunately, that's also possible :( -- Alberto _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

