Problems compiling programs with graphviz_read()
Hello all,I am a newbie to Boost Graph Libraries. I am working on a Mac OSX (Intel) platform. I have compiled the libraries using the bjam executable from boost_1_34_1/tools/jam/src/bin.macosxx86/bjam This resulted in formation of libraries in bin.v2/libs/... Now I would like to compile the edge-connectivity.cpp file in boost_1_34_1/libs/graph/examples directory with the following command: g++ -I$BOOST edge-connectivity.cpp -o test1 $BOOST/bin.v2/libs/graph/build/darwin/debug/link-static/libboost_graph-d-1_34_1.a This gives me the following errors: Undefined symbols: "boost::read_graphviz(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, boost::property<boost::vertex_attribute_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>, std::allocator<char> > const, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::no_property>, boost::property<boost::edge_attribute_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>, std::allocator<char> > const, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >
, boost::property<boost::edge_index_t, int, boost::no_property> >, boost::property<boost::graph_graph_attribute_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>, std::allocator<char> > const, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::property<boost::graph_vertex_attribute_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>, std::allocator<char> > const, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::property<boost::graph_edge_attribute_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>, std::allocator<char> > const, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::property<boost::graph_name_t, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::no_property> > > >, boost::listS> >&)", referenced from: _main in cctmckT6.o ld: symbol(s) not found
collect2: ld returned 1 exit status
Can some one explain what's going on? I have tried using -L option as well with no success: g++ -I$BOOST edge-connectivity.cpp -o test1 -L$BOOST/boost_1_34_1/bin.v2/libs/graph/build/darwin/debug/link-static/ -lboost_graph-d-1_34_1.a The examples that do not use graphviz_read() are easily compiled. I would also like to know if someone uses a jam file that lists all the dependencies for the example files. This way I can compile all the example files in the /libs/graph/examples in one shot with no linking problems. Thanks, Vivek
participants (1)
-
Vivek Menon