On Jan 11, 2005, at 1:38 PM, Welson Sun wrote:
Hi, 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 did: 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: ccVhyZaG.o(.text+0x602):graphviz.cpp: undefined reference to `boost::read_graphviz(std::basic_string
[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. Doug