Boost logo

Boost Users :

Subject: Re: [Boost-users] directory_iterator ++operator never return
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-05-19 14:36:01


> Well, that's still far better than not knowing anything at all, so
> thanks a lot for your help!
>
> Maybe something related with threading...

It is possible that BOOST_HAS_THREADS is being set for the library build and
not for the project build, or vice versa. The thread autodetection logic is
pretty complicated for gcc; maybe the fact that you're cross-compiling is
confusing it.

> I saw somewhere BOOST_SP_DISABLE_THREADS
>
> Do you think it might help? If yes, is that something to bet set both
> for boost build AND project build

Yes, it should be set for both. This should take care of the
shared_ptr-related issues.

In principle, it might be better if you can solve the BOOST_HAS_THREADS
mismatch since it has the potential to cause you more trouble in other
libraries. If you don't need threads, you may try rebuilding (both Boost and
the project) with BOOST_DISABLE_THREADS defined.


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