> Hello Björn,
> 
> > I am building OpenSceneGraph 2.6.0 from source on a machine 
> running SUSE 10.2.
> > When running cmake script I get the following warnings.
> > ...
> > -- Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS
> > -- Performing Test _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS - Failed
> > -- Performing Test _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS
> > -- Performing Test 
> _OPENTHREADS_ATOMIC_USE_MIPOSPRO_BUILTINS - Failed
> > -- Performing Test _OPENTHREADS_ATOMIC_USE_SUN
> > -- Performing Test _OPENTHREADS_ATOMIC_USE_SUN - Failed
> > -- Performing Test _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED
> > -- Performing Test 
> _OPENTHREADS_ATOMIC_USE_WIN32_INTERLOCKED - Failed 
> > ...
> 
> What version of gcc do you have? I think 
> _OPENTHREADS_ATOMIC_USE_GCC_BUILTINS should succeed with any 
> modern gcc version, but Matthias will be able to tell you 
> more - he wrote the atomic support.

This SUSE machine has gcc 4.1.2.20061115 (prerelease)

> 
> > Compiling and linking OSG works ok. But if I try compile 
> and link my application I get the following link errors:
> > 
> > display.o: In function 'osg::Referenced::ref() const':
> > 
> /home/work/sim/../../dependencies/include/osg/Referenced:148: 
> undefined reference to 'OpenThreads::Atomic::operator++()'
> > 
> > display.o: In function 'osg::Referenced::unref() const':
> > 
> /home/work/sim/../../dependencies/include/osg/Referenced:165: 
> undefined reference to 'OpenThreads::Atomic::operator--()'
> > 
> > Anyone have any ideas how to solve this?
> 
> You need to link to OpenThreads now, which was not required 
> before the Atomic ref counting was integrated into OSG. That 
> will resolve those linker errors.

Im sorry to report that explicitly linking the OpenThreads library does not 
resolve this issue.

/Björn
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to