Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-09-03 14:33:39


On Mon, 3 Sep 2001, Joel Young wrote:
jdy> I am also getting the following:
jdy>
jdy> In file included from stub.cc:1:
jdy> /u/jdy/boost_1_24_0/boost/graph/uniform_cost_search.hpp:173: syntax error before `;'
jdy>
jdy> where line 173 f uniform_cost_search.hpp is:
jdy> PredecessorMap m_predecessor;
jdy>
jdy> and where stub.cc is:
jdy>
jdy> ////cut here////
jdy> #include <boost/graph/uniform_cost_search.hpp>
jdy>
jdy> int main(int,char*[])
jdy> {
jdy> return 0;
jdy> }
jdy> ////cut here////

uniform_cost_search is deprecated. Use dijkstra's instead.

jdy> Also I get an internal compiler error (gcc 2.95.3) with the following stub:
jdy>
jdy>
jdy> boost::dijkstra_shortest_paths(
jdy> graph,
jdy> rootnode,
jdy> boost::distance_map(
jdy> boost::get(boost::vertex_distance,graph)
jdy> ).boost::predecessor_map(&pred[0])
jdy> );

The ".boost::predecessor_map" should be ".predecessor_map". You
only need the "boost::" prefix for the first named parameter.

Cheers,
Jeremy

----------------------------------------------------------------------
 Jeremy Siek http://php.indiana.edu/~jsiek/
 Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
 C++ Booster (http://www.boost.org) office phone: (812) 855-9761
----------------------------------------------------------------------


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk