> -----Ursprungligt meddelande-----
> Från: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] För Björn Blissing
> Skickat: den 10 oktober 2008 13:40
> Till: OpenSceneGraph Users
> Ämne: Re: [osg-users] Problemwith OpenThreads::Atomic when 
> buildingapplication with OSG2.6.0 on SUSE 10.2
> 
> > Line 4:
> >          U OpenThreads::Atomic::operator--()        display.cpp:0
> > 
> > Tells that the symbol is referenced from dispay.cpp.
> > This is one of the offending symbols. Find out why this 
> display.cpp is 
> > compiled with this code non inline?
> 
> There seems to be some problem during the preprocessor step 
> when compiling.
> The following change in include/OpenThreads/Atomic makes my 
> code compile and link:
> 
> Changing:
> #if defined(_OPENTHREADS_ATOMIC_USE_LIBRARY_ROUTINES)
> #define _OPENTHREADS_ATOMIC_INLINE
> #else
> #define _OPENTHREADS_ATOMIC_INLINE inline #endif
> 
> Into:
> #ifndef _OPENTHREADS_ATOMIC_USE_LIBRARY_ROUTINES
> #define _OPENTHREADS_ATOMIC_INLINE inline #else #define 
> _OPENTHREADS_ATOMIC_INLINE #endif
> 

Ok.. Forget the above solution. It do not work when doing a complete recompile.

Instead I was forced to manually replace all _OPENTHREADS_ATOMIC_INLINE with 
inline.
And remove line 92: #if !defined(_OPENTHREADS_ATOMIC_USE_LIBRARY_ROUTINES)

Which is a really quick and ugly fix to the preprocessor problem...

/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