1

Graphviz using gvc and cgraph in one program

view story
linux-howto

http://ubuntuforums.org – Hi! I'm trying to produce a visualization of a graph with graphviz. I have no problems generating a graph with libcgraph (or even the libgraph), the problem occurs when I want to create an image as well using libgvc. As soon as I use both functions from libcgraph (or libgraph) and libgvc I get a segfault when calling gvContext(). Sample code: Code: #include <stdio.h> #include <graphviz/gvc.h> #ifdef WITH_CGRAPH # include <graphviz/cgraph.h> #else # include <graphviz/graph.h> #endif int main(int argc, char **argv) {     GVC_t *gvc;     Agraph_ (Hardware)