14 Oct
2002
14 Oct
'02
3:49 p.m.
From: "S. Scott Collis"
I appologize if this has been addressed before. I did a quick search of the of the new group and didn't find anything.
I just tried to port a code that uses Boost to a new computer loaded with RedHat 7.3. It seems that in 7.3 the /usr/include/asm/atomic.h header is different and generates a warning (i.e.
#warning Using kernel header in userland program. BAD!
instead of supplying routines like
atomic_add and atomin_sub
that are apparently required by Boost for the shared_ptr implementation.
shared_ptr no longer uses asm/atomic.h. You are probably using Boost 1.27.0? Is your program multithreaded? If not, #define BOOST_DISABLE_THREADS.