Boost logo

Boost Users :

Subject: Re: [Boost-users] libboost_date_time: undefined reference to __sync_fetch_and_add_4
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-04-03 14:51:08


Carsten Raas wrote:

> Hello!
>
> I built a (complete) Boost 1.38 library with the Intel compilers
> 10.1.021, 11.0.073, and 11.0.081 for an EM64T (x86_64) Linux
> architecture. But I end up with the same problem for all builds: the
> shared version of libboost_date_time cannot be linked to this simple
> demo program:
...
> I have been googling around for a while, but all I found was related to
> GCC sync primitives (e.g. sync_lock_test_and_set, sync_fetch_and_add)
> and different architectures (armel, sparc, etc.). I also tried the
> workaround with
> #define BOOST_SP_USE_PTHREADS
> in boost/config/user.hpp, without success.

Did you rebuild date_time itself with this change? Is the file actually
included anywhere? Does adding such define near the point where BOOST_SP_USE_PTHREADS
is tested helps?

- Volodya


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