Package: libboost-graph-dev
Version: 1.33.0-1
Severity: normal

I'm not clear if this is an issue with the packaging, or the code, or
the documentation. Boost suggests that read_graphviz has the
prototype:

template <typename MutableGraph>
bool read_graphviz(std::istream& in, MutableGraph& graph,
                   dynamic_properties& dp, 
                   const std::string& node_id = "node_id");

Sample code at http://www.boost.org/libs/graph/example/graphviz.cpp
shows how to use it. That function is actually implemented in
boost/graph/graphviz.hpp:

// Parse the passed stream as a GraphViz dot file.
template <typename MutableGraph>
bool read_graphviz(std::istream& in, MutableGraph& graph,
                   dynamic_properties& dp,
                   std::string const& node_id = "node_id") 
{
  detail::graph::mutate_graph_impl<MutableGraph> m_graph(graph, dp, node_id);
  return detail::graph::read_graphviz(in, m_graph);
}

and it's that function "detail::graph::read_graphviz" which doesn't
exist. The prototype for it is:

bool read_graphviz(std::istream& in, mutate_graph& graph);

Here's the full compile error from the example code posted above:

$ g++ -Wall -pedantic -g -lbgl-viz  test_graphviz.cpp -o test_graphviz
/tmp/ccj5y3nV.o: In function `bool 
boost::read_graphviz<boost::adjacency_list<boost::vecS, boost::vecS, 
boost::undirectedS, boost::property<boost::vertex_name_t, 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, 
boost::no_property>, boost::property<boost::edge_weight_t, double, 
boost::no_property>, boost::no_property, boost::listS> 
>(std::basic_istream<char, std::char_traits<char> >&, 
boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, 
boost::property<boost::vertex_name_t, std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, boost::no_property>, 
boost::property<boost::edge_weight_t, double, boost::no_property>, 
boost::no_property, boost::listS>&, boost::dynamic_properties&, 
std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/boost/graph/graphviz.hpp:748: undefined reference to 
`boost::detail::graph::read_graphviz(std::basic_istream<char, 
std::char_traits<char> >&, boost::detail::graph::mutate_graph&)'
collect2: ld returned 1 exit status

Thanks,
Nick Lewycky

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.10
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libboost-graph-dev depends on:
ii  libboost-dev                  1.33.0-1   Boost.org libraries development fi

Versions of packages libboost-graph-dev recommends:
ii  libboost-graph1.33.0          1.33.0-1   generic graph components and algor

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to