[pkg-boost-devel] Bug#646207: libboost-graph-dev: Linking error with read_graphviz
Andreas Cord-Landwehr
cordlandwehr at googlemail.com
Sat Oct 22 09:00:49 UTC 2011
Package: libboost-graph-dev
Version: 1.46.1.1
Severity: normal
Dear Maintainer,
there is a linker problem when using read_graphviz as defined
in "boost/graph/graphviz.hpp". The linker error is the following:
--- <snip> ---
g++ -Wall -pedantic -g graphviz.cpp
/tmp/cccHnOax.o: In function `bool boost::read_graphviz_new<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_string<char, std::char_traits<char>, std::allocator<char> > const&, 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/detail/read_graphviz_new.hpp:103: undefined reference to `boost::detail::graph::read_graphviz_new(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::detail::graph::mutate_graph*)'
collect2: ld returned 1 exit status
--- <snap> ---
A non linking example is already shipped with the boost debian packages as
/usr/share/doc/libboost1.46-doc/examples/libs/graph/example/graphviz.cpp
or
/usr/share/doc/libboost1.46-doc/examples/libs/graph/example/read_graphviz.cpp
This actually looks quite similar to closed bug
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=326089
for Boost 1.33.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libboost-graph-dev depends on:
ii libboost-graph1.46-dev 1.46.1-7
libboost-graph-dev recommends no packages.
libboost-graph-dev suggests no packages.
-- no debconf information
More information about the pkg-boost-devel
mailing list