Mike Krus wrote: > Hi > > we are having issues with compilers on the Mac. > > Initially we were building everything with the version of gcc that comes with > Xcode, i.e.: > gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00) > > > But one of our other third party libs (CGAL) does not like it so we looked at > changing. I tried recompiling everything with gcc 4.3 from MacPort but it > fails to build OSG (fails on some of the Objective C code). > > Tried compiling everything with GCC 4.3 except OSG which I build with the > llvm-gcc 4.2, but the binary compatibility seems no very good and I get the > reported crash when "freeing non allocated memory". > > Obviously it seems stdc++ libraries are getting mixed up but it would be nice > to be able to resolve this (and not go crazy in the process!) > > > Mike >
Hi Mike, In fact, the question is why it doesn't take the correct libstdc++. If you do: tool -L libosg.dylib (in your osg dir) it says that it uses /usr/lib/libstd++.6.dylib. So, why is it using another one? Look here: http://stackoverflow.com/questions/9798623/xcode-dynamic-library-linking-how-to-properly-set-run-paths-search-paths-and. I though you could made that OSG uses the correct library, but I can't assure you won't be crazy. ------------------------ See you, Manuel. ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48877#48877 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

