Opened 17 years ago

Closed 16 years ago

#536 closed Bugs (Fixed)

g++ v3.2.3 inker error for read_graphviz ih boost v1.33.1

Reported by: nobody Owned by: jsiek
Milestone: Component: graph
Version: None Severity:
Keywords: Cc:

Description

There's a link error when trying to compile the
graphviz.cpp example file. Submitters email address is
"marioaranha@yahoo.com". Details below:

cd .../boost_1_33_1/libs/graph/example
g++ -I../../.. graphviz.cpp -L../../../libs/graph/src
-lbgl-viz
/tmp/ccu7dj8Y.o(.gnu.linkonce.t._ZN5boost13read_graphvizINS_14adjacency_listINS_4vecSES2_NS_11undirectedSENS_8propertyINS_13vertex_name_tESsNS_11no_propertyEEENS4_INS_13edge_weight_tEdS6_EES6_NS_5listSEEEEEbRSiRT_RNS_18dynamic_propertiesERKSs+0x6e):
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_traints<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&)':
: undefined reference to
`boost::detail::graph::read_graphviz(std::basic_istream<char,
std::char_traints<char> >&,
boost::detail::graph::mutate_graph&)'
collect2: ld returned 1 exit status




Change History (2)

comment:1 by braillon, 17 years ago

Logged In: YES 
user_id=1315134

The problem seems to be in graphviz.hpp line 737, method
bool read_graphviz(std::istream& in, mutate_graph& graph) is
not defines and is not in the library libbgl-viz.[a,so]

comment:2 by Douglas Gregor, 16 years ago

Status: assignedclosed
Logged In: YES 
user_id=249098
Originator: NO

This problem is due to an out-of-date makefile in libs/graph/src; the Boost.Build Jamfile builds work properly with this example.
Note: See TracTickets for help on using tickets.