
On Wed, 9 Jun 2010, Adam Spargo wrote:
Hi, I am trying to run Dijkstra example from the BGL book (chapter 5).
I have built libbgl-viz.a and I am trying to link it like this:
CPP = g++ CFLAGS = -O2 IFLAGS = -I ~/src/boost_1_42_0 LFLAGS = -L ~/src/boost_1_42_0/libs/graph/src ospf: ospf.o $(CPP) -o $@ $(LFLAGS) -l bgl-viz ospf.o ospf.o: ospf.cpp $(CPP) $(CFLAGS) $(IFLAGS) -c -o $@ ospf.cpp
it seems to find the lib okay, but I get an error like this:
ospf.cpp:(.text+0xa2): undefined reference to `boost::read_graphviz(std::basic_s
...
Is there some obvious pitfall, or maybe someone could help me work it out?
There is no bgl-viz library anymore; that is likely to be the issue. The new library name is boost_graph and it is built using the usual Boost build process. If you build and link against that and there are still problems please reply to the list. -- Jeremiah Willcock