Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] graphviz example
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-06-09 13:13:47


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


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