Hi Marc, I think your problem is that BGL has get() and put() property map functions defined for pointers, but vector::iterator is not guaranteed to be a pointer. The fix is to wrap vector::iterator using the iterator_property_map class. Cheers, Jeremy On Wed, 20 Mar 2002, Wintermantel , Marc wrote: marc.w> Hello, marc.w> marc.w> marc.w> marc.w> I tried to complile the following code that worked under gcc 2.95.3 marc.w> under gcc 3.0.1 and got tons of error messages: marc.w> marc.w> marc.w> marc.w> typedef adjacency_list< marc.w> marc.w> setS, marc.w> marc.w> vecS, marc.w> marc.w> undirectedS, marc.w> marc.w> property< marc.w> marc.w> vertex_color_t, marc.w> marc.w> default_color_type, marc.w> marc.w> property< marc.w> marc.w> vertex_degree_t, marc.w> marc.w> int, marc.w> marc.w> property< marc.w> marc.w> vertex_current_degree_t, marc.w> marc.w> int, marc.w> marc.w> property< marc.w> marc.w> vertex_priority_t, marc.w> marc.w> int > > > > > Graph; marc.w> marc.w> marc.w> marc.w> ... marc.w> marc.w> marc.w> marc.w> std::vector<graph_traits<Graph>::vertices_size_type> marc.w> dist(num_vertices(G), 0); marc.w> marc.w> marc.w> marc.w> breadth_first_search marc.w> marc.w> (G, e, visitor marc.w> marc.w> ( marc.w> marc.w> make_bfs_visitor(record_distances(dist.begin(), marc.w> on_tree_edge() ) ) marc.w> marc.w> ) marc.w> marc.w> ); marc.w> marc.w> marc.w> marc.w> ... marc.w> marc.w> marc.w> marc.w> The errors have something to deal with the visitors, more I could not marc.w> read out of the errors. When I use a simple array in the form int d[n] marc.w> it works. marc.w> marc.w> marc.w> marc.w> Yours truly, marc.w> marc.w> marc.w> marc.w> Marc Wintermantel marc.w> marc.w> marc.w> marc.w> marc.w> marc.w> Marc Wintermantel marc.w> marc.w> IMES - Structures Technology marc.w> marc.w> ETH Zurich, LEO C4 marc.w> marc.w> Leonhardstrasse 27 marc.w> marc.w> CH- 8092 Zurich marc.w> marc.w> Tel. ++41 1 633 35 32 marc.w> marc.w> Fax. ++41 1 632 17 02 marc.w> marc.w> marc.w> marc.w> marc.w> marc.w> [Non-text portions of this message have been removed] marc.w> marc.w> marc.w> marc.w> marc.w> Info: <http://www.boost.org> marc.w> Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl> marc.w> Unsubscribe: <mailto:boost-users-unsubscribe@yahoogroups.com> marc.w> marc.w> marc.w> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ marc.w> marc.w> ---------------------------------------------------------------------- Jeremy Siek http://php.indiana.edu/~jsiek/ Ph.D. Student, Indiana Univ. B'ton email: jsiek@osl.iu.edu C++ Booster (http://www.boost.org) office phone: (812) 855-3608 ----------------------------------------------------------------------