Hi.

I have been working through the tutorial portion of "The Boost Graph Library: User Guide and Reference Manual", and have been unable to get example code that includes calls to read_graphviz to link.  For example, code including this line:

read_graphviz("figs/ospf-graph.dot", g_dot);

when compiled like this:

 g++ -I/usr/local/include//boost-1_37 ospf-example.cpp \
-o ospf /usr/local/lib/libboost_graph-xgcc40-mt-1_37.a

generates the message:

/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
boost::read_graphviz(std::basic_string<char, std::char_traits<char>, \
std::allocator<char> > const&, boost::subgraph<boost::adjacency_list ...

<very long signature ending in...>

... boost::no_property> > > >, boost::listS> >&)
collect2: ld returned 1 exit status

However, the test code graphviz.cpp, which has the lines:

  std::ifstream in(filename.c_str());
  BOOST_REQUIRE(in);

  Graph g;
  dynamic_properties dp;
  dp.property("id", get(vertex_name, g));
  dp.property("weight", get(edge_weight, g));
  BOOST_CHECK(read_graphviz(in, g, dp, "id"));

compiles, links, and runs just fine.

I also tried (desperation) building an earlier version of boost -- 1.34.1 -- with the same results.

Any ideas what I'm missing and how I might fix it, or what I need to read to find out, would be appreciated.

-- Michael