Boost logo

Boost Users :

Subject: [Boost-users] [BGL] graphviz example
From: Adam Spargo (aws_at_[hidden])
Date: 2010-06-09 12:40:30


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_at_[hidden]
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. 

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net