Boost logo

Boost Users :

From: Johan Oudinet (johan.oudinet_at_[hidden])
Date: 2006-04-11 19:38:54


On 4/12/06, Irek Szczesniak <ijs_at_[hidden]> wrote:
> I have a problem with the Boost Graph Library: I'm unable to link with
> the read_graphviz function. I'm using Boost v. 1.33.1 on Fedora Core
> 3, Linux 2.6.10, gcc 3.4.4. I try to compile the example
> boost_1_33_1/libs/graph/example/graphviz.cpp.

- Get the BGL sources
- Build the libbgl-viz.a library (follow the instruction here:
http://www.cs.brown.edu/~jwicks/boost/libs/graph/doc/read-graphviz.html)
- Compile with this library (g++ your_source.cpp
-Lpath/to/your/library -lbgl-viz)

>
> > g++ -I /usr/local/include/boost-1_33_1/
> /home/ijs/boost_1_33_1/libs/graph/src/libbgl-viz.a graphviz.cpp
> > : undefined reference to
> `boost::detail::graph::read_graphviz(std::basic_istream<char,
> std::char_traits<char> >&, boost::detail::graph::mutate_graph&)'
> collect2: ld returned 1 exit status
>
> I would appreciate any advice. Thanks for reading.
>

Regards,

--
Johan

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