
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? Thanks, Adam. -- Dr Adam Spargo High Performance Assembly Group email: aws@sanger.ac.uk Wellcome Trust Sanger Institute Tel: +44 (0)1223 834244 x7728 Hinxton, Cambridge CB10 1SA Fax: +44 (0)1223 494919 -- The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE.

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
participants (2)
-
Adam Spargo
-
Jeremiah Willcock