Boost example programme compilation error (Sun C++5.8 on Solaris 5.8)

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

2009/8/4 Bernd Zwatschka <Bernd.Zwatschka@deutsche-finanzagentur.de>:
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?
It's tested using STLport so you'll probably need to use it rather than Sun's default standard library. This blog might help: http://blogs.sun.com/sga/category/Boost Although it hasn't been updated for a while. Daniel
participants (2)
-
Bernd Zwatschka
-
Daniel James