Boost logo

Boost-Build :

Subject: Re: [Boost-build] Boost 1.54 compilation issue (error: ‘uintptr_t’ was not declared in this scope typedef atomic<uintptr_t> atomic_uintptr_t;)
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2013-09-07 03:39:41


Le 07/09/13 04:07, Dâniel Fraga a écrit :
> I'm trying to compile boost 1.54, but I get a lot of errors (I'm using gcc 4.8.2):
>
> gcc.compile.c++ bin.v2/libs/atomic/build/gcc-4.8.2/release/threading-multi/lockpool.o
> In file included from ./boost/atomic.hpp:12:0,
> from libs/atomic/src/lockpool.cpp:1:
> ./boost/atomic/atomic.hpp:202:16: error: ‘uintptr_t’ was not declared in this scope
> typedef atomic<uintptr_t> atomic_uintptr_t;
> ^
> ./boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid
> typedef atomic<uintptr_t> atomic_uintptr_t;
> ^
> ./boost/atomic/atomic.hpp:202:43: error: invalid type in declaration before ‘;’ token
> typedef atomic<uintptr_t> atomic_uintptr_t;
> ^
>
> Any hints?
>
>
I was wondering where BOOST_HAS_INTPTR_T is defined.

#if defined(BOOST_HAS_INTPTR_T)
typedef atomic<intptr_t> atomic_intptr_t;
typedef atomic<uintptr_t> atomic_uintptr_t;
#endif

I don't find it in Boost.Config documentation, neither on boost/config.

Best,
Vicente


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk