Search code examples
codeblocksgraphviz

How to link Graphviz with Codeblocks


I want to visualise a graph using Graphviz, and am coding on C++ in Code::Blocks, is there any way of linking Graphviz with Codeblocks? If yes, how should I do it?


Solution

  • Given that I do not know the Graphviz library, what you did should work from cmd windows (after setting the system enviroment paths).
    If you want to write a C++ program that uses the Graphviz library you need to learn how to statically link to a compiled library (see here) and then consult the documentation present on the Graphviz website (libguide.pdf).