Boost logo

Boost Users :

From: keith.briggs_at_[hidden]
Date: 2004-11-29 08:03:07


I am using g++ 3.2 on a redhat linux system. I took the johnson_all_pairs_shortest_paths example,
(http://www.boost.org/libs/graph/example/johnson-eg.cpp) which works fine, but then changed
const int V = 5;
to
const int V = n;
where n has been computed at runtime. This should not change the type of V or D, but I now get the error
below. Can anyone explain how to fix this?
Thanks,
Keith
> /usr/bin/g++ -I ~/boost_1_32_0/ graph_stats.cc
graph_stats.cc: In function `int main()':
graph_stats.cc:46: no matching function for call to `
   johnson_all_pairs_shortest_paths(main()::Graph&, int[V][V],
   boost::bgl_named_params<int*, boost::vertex_distance_t, boost::no_property>
   )'


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