Boost logo

Boost :

From: Roland Weiss (weissr_at_[hidden])
Date: 2002-03-11 09:55:26


Peter,

thanks for the detailed response, works fine now (currently, no need for
multi-threading in my application).

For the next release, I can test the new version with my compiler setup.

Roland

-----Original Message-----
From:
sentto-1234907-24112-1015856214-weissr=informatik.uni-tuebingen.de_at_retur
ns.groups.yahoo.com
[mailto:sentto-1234907-24112-1015856214-weissr=informatik.uni-tuebingen.
de_at_[hidden]]On Behalf Of Peter Dimov
Sent: Monday, March 11, 2002 15:17
To: boost_at_[hidden]
Subject: Re: [boost] Comeau on Linux & shared_ptr

From: "Roland Weiss" <weissr_at_[hidden]>
> Dear Boosters,
>
> recently I upgraded my boost library to version 1.27.0. Unfortunately,
> using shared_ptr no longer works. My configuration is as follows:
>
> Comeau 4.2.45.2, Linux, libcomo (SGI STL derived)
>
> The problem is as follows: shared_ptr on Linux includes the file
> "/usr/include/asm/atomic.h", but this file fails being processed
> correctly by the como compiler:
[...]
> any help appreciated,

Roland,

You have two options:

* If your program doesn't use threads, #define BOOST_DISABLE_THREADS to
disable thread safety;

* Otherwise, modify boost/detail/atomic_count.hpp to not use the
Linux-specific version by changing the line

#elif defined(linux) || defined(__linux) || defined(__linux__)

to

#elif defined(BOOST_USE_ASM_ATOMIC_H)

This problem will be addressed in the next release; it turns out that
<asm/atomic.h> is a kernel header and user programs aren't supposed to use
it anyway.

Info: http://www.boost.org Send unsubscribe requests to:
<mailto:boost-unsubscribe_at_[hidden]>

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk