|
Boost Users : |
Subject: Re: [Boost-users] Compiling version 1.43 of boost/graph with SunCC 5.8
From: Rob Riggs (rob_at_[hidden])
Date: 2011-10-11 21:17:10
You won't get far with that compiler. Your only hope is SS12 (CC 5.10), but even that's a stretch. The Solaris compiler was not exactly standard compliant.
Rob
Renaud Kauffmann <renaud_at_[hidden]> wrote:
>#include <boost/graph/adjacency_list.hpp>
>
>using namespace boost;
>
>typedef adjacency_list <vecS, vecS, undirectedS> BoostGraph;
>typedef graph_traits < BoostGraph >::vertex_descriptor vertex_t;
>
>int main() {
>
> BoostGraph g;
> vertex_t v1 = add_vertex(g);
> vertex_t v2 = add_vertex(g);
> vertex_t v3 = add_vertex(g);
>
> return 0;
>}
>
>The above code doesn't seem to compile with Sun Studio 11, that is Sun C++
>compiler 5.8 and boost 1.43
>Here is the error:
>
>"/home/renaudk/boost/boost_1_43_0/boost/unordered/detail/table.hpp", line
>38: Error: Could not find a match for
>boost::unordered_detail::hash_table<boost::unordered_detail::T>::find_iterator<boost::unordered_detail::hash_table<boost::unordered_detail::T>::Key,
>boost::unordered_detail::hash_table<boost::unordered_detail::T>::Pred>(bucket_ptr,
>const boost::unordered_detail::Key&, const boost::unordered_detail::Pred&)
>const.
>"/home/renaudk/boost/boost_1_43_0/boost/unordered/detail/table.hpp", line
>38: Error: Too many args in template, from boost::unordered_detail::Pred on
>ignored.
>"/home/renaudk/boost/boost_1_43_0/boost/unordered/detail/table.hpp", line
>595: Error: Could not find a match for
>boost::unordered_detail::hash_table<boost::unordered_detail::T>::find(const
>boost::unordered_detail::Key&, const boost::unordered_detail::Hash&, const
>boost::unordered_detail::Pred&) const.
>"/home/renaudk/boost/boost_1_43_0/boost/unordered/detail/table.hpp", line
>595: Error: Too many args in template, from boost::unordered_detail::Hash on
>ignored.
>4 Error(s) detected.
>
>I have tried some of the switch I found in the forums such as
>-library=stlport4
>-features=tmplife -features=tmplrefstatic
>
>But no luck.
>
>Does anybody know the trick ?
>
>Thanks.
>
>_______________________________________________
>Boost-users mailing list
>Boost-users_at_[hidden]
>http://lists.boost.org/mailman/listinfo.cgi/boost-users
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