Subject: [Boost-users] Boost example programme compilation error (Sun C++5.8 on Solaris 5.8)
From: Bernd Zwatschka (Bernd.Zwatschka_at_[hidden])
Date: 2009-08-04 09:26:35


Hi,

we're new to Boost and trying to compile the example programme from the getting
started page (compiler version: Sun C++ 5.8 2005/10/13, OS: Solaris 5.8) with
Boost release 1_39.

I'm getting the following error upon compilation:

"/finag/ZwatschB/boost_1_39_0/boost/lambda/detail/operator_lambda_func_base.hpp"
, line 212: Error: Initializing std::ostream & requires an lvalue.
"test.cc", line 12: Where: While
instantiating "std::for_each<std::istream_iterator<int, char,
std::char_traits<char>, int>,
boost::lambda::lambda_functor<boost::lambda::lambda_functor_base<boost::lambda::
bitwise_action<boost::lambda::leftshift_action>,
boost::tuples::tuple<boost::lambda::lambda_functor<boost::lambda::lam

According to the release notes, Boost has been tested on C++ 5.8 on Solaris
5.10, so I'm assuming our configuration of compiler / OS is to blame?

Is there a way of getting the 1_39 release working on Solaris 5.8 or do we have
to switch to an earlier version of Boost? Or could there be another reason for
the compilation error?

Any pointers on this would be much appreciated.

Thanks,
Bernd