Hi,
My platform is Linux (Fedora
Core 2), gcc version: gcc (GCC) 3.3.3 20040412 (Red Hat Linux
3.3.3-7)
I need to read and write the
ATT graphviz format, so this is what I did:
1. Generated the libbgl-viz
library.
In
boost_1_32_0/libs/graph/src/ directory, use the default Makefile, generated the
libbgl-viz library without error. And I copied them to
/usr/local/lib
2. g++
boost_1_32_0/libs/graph/example/graphviz.cpp, but I got the nasty
error:
ccVhyZaG.o(.text+0x602):graphviz.cpp:
undefined reference to
`boost::read_graphviz(std::basic_string<char,
std::char_t
raits<char>, std::allocator<char> > const&,
boost::subgraph<boost::adjacency_lis
t<boost::vecS, boost::vecS,
boost::directedS, boost::property<boost::vertex_attr
ibute_t,
std::map<std::basic_string<char, std::char_traits<char>,
std::allocator
<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>, s
td::allocator<char> > const,
std::basic_string<char, std::char_traits<char>,
std
::allocator<char> > > > >, boost::no_property>,
boost::property<boost::edge_attr
ibute_t,
std::map<std::basic_string<char, std::char_traits<char>,
std::allocator
<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>, s
td::allocator<char> > const,
std::basic_string<char, std::char_traits<char>,
std
::allocator<char> > > > >,
boost::property<boost::edge_index_t, int, boost::no_p
roperty> >,
boost::property<boost::graph_graph_attribute_t,
std::map<std::basic_
string<char, std::char_traits<char>,
std::allocator<char> >, std::basic_string<c
har,
std::char_traits<char>, std::allocator<char> >,
std::less<std::basic_string
<char, std::char_traits<char>,
std::allocator<char> > >,
std::allocator<std::pai
r<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >
const,
std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > > >,
bo
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::cha
r_traits<char>, std::allocator<char> >,
std::less<std::basic_string<char, std::c
har_traits<char>,
std::allocator<char> > >,
std::allocator<std::pair<std::basic_
string<char,
std::char_traits<char>, std::allocator<char> > const,
std::basic_st
ring<char, std::char_traits<char>,
std::allocator<char> > > > >,
boost::property
<boost::graph_edge_attribute_t,
std::map<std::basic_string<char, std::char_trait
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<char
>,
std::allocator<char> > >,
std::allocator<std::pair<std::basic_string<char,
st
d::char_traits<char>, std::allocator<char> > const,
std::basic_string<char, std:
:char_traits<char>,
std::allocator<char> > > > >,
boost::property<boost::graph_n
ame_t, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
b
oost::no_property> > > >, boost::listS>
>&)'
collect2: ld returned 1 exit status
What's the
matter?