Boost Users :
From: Doug Gregor (dgregor_at_[hidden])
Date: 2005-01-11 16:29:26
On Jan 11, 2005, at 1:38 PM, Welson Sun wrote:
> My platform is Linux (Fedora Core 2), gcc version: gcc (GCC) 3.3.3
> 20040412 (Red Hat Linux 3.3.3-7)
> I need to read and write the ATT graphviz format, so this is what I
> 1. Generated the libbgl-viz library.
> In boost_1_32_0/libs/graph/src/ directory, use the default
> Makefile, generated the libbgl-viz library without error. And I copied
> them to /usr/local/lib
> 2. g++ boost_1_32_0/libs/graph/example/graphviz.cpp, but I got
> the nasty error:
> undefined reference to `boost::read_graphviz(std::basic_string<char,
> [snip error]
> collect2: ld returned 1 exit status
> What's the matter?
Add -lbgl-viz to the end of your "g++" command line to link in the
GraphViz reader code.
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