Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-10-14 10:49:20


From: "S. Scott Collis" <yg-boost-users_at_[hidden]>
> 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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net