Re: [Boost-users] Compiling version 1.43 of boost/graph with SunCC 5.8

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@ekauffmann.net> 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Tue, 30 Aug 2011, Rob Riggs wrote:
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
I agree with that -- Boost doesn't regression test Boost.Graph on the Sun compilers because so many things are broken. You might be able to use it by removing the lines mentioning unordered in container_traits and BGL and defining BOOST_GRAPH_NO_BUNDLED_PROPERTIES; see http://marc.info/?l=boost-users&m=126608490031317&w=2 for some information using Boost 1.42.0 and Sun CC 5.10. That appears to be a different issue than the one you are having, though. Another option would be to use an older version of Boost, but you might need to go back several releases from 1.43 to find one that will work (partially) on your compiler. -- Jeremiah Willcock
participants (2)
-
Jeremiah Willcock
-
Rob Riggs