2011/2/15 Stéphane Charette <ste...@gm...>:
> Trying to use cpp-netlib for the first time. Development environment (I
> don't get to control this) is Ubuntu 10.04.
>
Cool!
> Default boost in Ubuntu 10.04 is 1.40, which doesn't work for cpp-netlib.
> Immediately dies during compilation of my test app due to
> boost/thread/future.hpp not existing.
>
Yes, and it's generally discouraged to use the Boost that's
distributed with the Linux distributions. Always get your Boost from
http://www.boost.org/ and the sourceforge link that's provided there.
> That brought me to boost v1.42 from
> https://launchpad.net/~gezakovacs/+archive/boost.
>
> This one doesn't work due to boost/range/algorithm/transform.hpp not
> existing, and dozens of things like:
> /usr/include/boost/thread/future.hpp:93: error: ‘mutex’ in namespace ‘boost’
> does not name a type
> /usr/include/boost/thread/future.hpp:94: error: ‘condition_variable’ in
> namespace ‘boost’ does not name a type
> /usr/include/boost/thread/future.hpp:95: error: ‘condition_variable_any’ is
> not a member of ‘boost’
>
Yes, 1.42 won't work.
> I'm in the process of figuring out how to get boost 1.45 installed. How can
> I find out what minimum version of boost is required for cpp-netlib?
>
The minimum is 1.45.
> And if I was to downgrade cpp-netlib to something earlier than 0.8.1, do I
> have a chance of getting cpp-netlib working with boost 1.42?
>
Hmmm... that's tricky. I think 0.7 will work with 1.42 but you don't
get the async features in 0.8 and later versions.
Earlier versions than 0.7 isn't really recommended as a lot of things
have already happened between 0.7 and 0.8 -- for now your best bet
would be to use 0.8 with Boost 1.45.
HTH
--
Dean Michael Berris
about.me/deanberris
|