|
Boost Users : |
From: Welson Sun (welson_sun_at_[hidden])
Date: 2005-01-20 18:30:11
Hi,
I would like to parse the graphviz dot file using your read_graphviz in the
boost graph library. However, when I compiling the example/graphviz.cpp
file, I got the following error:
$ g++ graphviz.cpp
/cygdrive/c/DOCUME~1/welson/LOCALS~1/Temp/cctY52MA.o(.text+0x602):graphviz.c
pp:
undefined reference to `boost::read_graphviz(std::basic_string<char,
std::char_
raits<char>, std::allocator<char> > const&,
boost::subgraph<boost::adjacency_li
t<boost::vecS, boost::vecS, boost::directedS,
boost::property<boost::vertex_att
ibute_t, std::map<std::basic_string<char, std::char_traits<char>,
std::allocato
<char> >, std::basic_string<char, std::char_traits<char>,
std::allocator<char>
, std::less<std::basic_string<char, std::char_traits<char>,
std::allocator<char
> >, std::allocator<std::pair<std::basic_string<char,
std::char_traits<char>,
td::allocator<char> > const, std::basic_string<char, std::char_traits<char>,
st
::allocator<char> > > > >, boost::no_property>,
boost::property<boost::edge_att
ibute_t, std::map<std::basic_string<char, std::char_traits<char>,
std::allocato
<char> >, std::basic_string<char, std::char_traits<char>,
std::allocator<char>
, std::less<std::basic_string<char, std::char_traits<char>,
std::allocator<char
> >, std::allocator<std::pair<std::basic_string<char,
std::char_traits<char>,
td::allocator<char> > const, std::basic_string<char, std::char_traits<char>,
st
::allocator<char> > > > >, boost::property<boost::edge_index_t, int,
boost::no_
roperty> >, boost::property<boost::graph_graph_attribute_t,
std::map<std::basic
string<char, std::char_traits<char>, std::allocator<char> >,
std::basic_string<
har, std::char_traits<char>, std::allocator<char> >,
std::less<std::basic_strin
<char, std::char_traits<char>, std::allocator<char> > >,
std::allocator<std::pa
r<std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >
>, b
ost::property<boost::graph_vertex_attribute_t,
std::map<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
std::ch
r_traits<char>, std::allocator<char> >, std::less<std::basic_string<char,
std::
har_traits<char>, std::allocator<char> > >,
std::allocator<std::pair<std::basic
string<char, std::char_traits<char>, std::allocator<char> > const,
std::basic_s
ring<char, std::char_traits<char>, std::allocator<char> > > > >,
boost::propert
<boost::graph_edge_attribute_t, std::map<std::basic_string<char,
std::char_trai
s<char>, std::allocator<char> >, std::basic_string<char,
std::char_traits<char>
std::allocator<char> >, std::less<std::basic_string<char,
std::char_traits<cha
>, std::allocator<char> > >,
std::allocator<std::pair<std::basic_string<char, s
d::char_traits<char>, std::allocator<char> > const, std::basic_string<char,
std
:char_traits<char>, std::allocator<char> > > > >,
boost::property<boost::graph_
ame_t, std::basic_string<char, std::char_traits<char>, std::allocator<char>
>,
oost::no_property> > > >, boost::listS> >&)'
collect2: ld returned 1 exit status
However, I can use the write_graphviz to generate the .dot file from a
graph, which means I have compiled the library correctly.
Do you have any idea what is going on here?
Best Regards,
Welson Sun
-------------------------------------
Electrical and Computer Engineering
Brigham Young Unversity
461 CB, Provo, Utah 84602
Office: (801) 422-7206
Email: welson_at_[hidden]
-------------------------------------
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