FreeSoftware to the fullest!

C/C++ dependencies

So I decided that I wasn’t busy enough and I began to work with a little geeky project. I already don’t have a name for it (if someone has an idea please tell me!) but its goal is to graphically represent the recursive dependencies of every file in your C/C++ project.

I used the gnu c preprocessor to parse the files and Java to write it. Yes! Java to write a C-related project, it is a bit bizarre but it has its explaination. I used a module to represent these graphs that I made last quarter for the university and I didn’t want to write anything else.
Just to know, anybody knows a free nice and cool widget for Java or C++ that lets me represent graphs?

Anyway, you can find this project here, I’m planning to ask for a liitle room on sourceforge but I don’t know if I’ll keep on it so I haven’t asked for it yet. Some screenshots here.


  1. John Myers

    would something from graphviz work for you?

  2. Ricard

    maybe you would like to have a look at to make this kind of visuals with Java. have a look at the Exhibition in their site.

    bona sort!

  3. Askrates

    As for a name, what about “DependenC” 🙂

  4. apol

    Hola Ricard! 🙂

    I’ve been looking at, looks like a very nice library for drawing and so… Very artist-oriented, isn’t it? When I said representing graphs I meant something like graphviz or jgraph.

    Hi John, I looked at graphviz and I didn’t like it very much. I’ve planned .dot support anyway so this program will be graphviz-compatible.

  5. Kurt

    It’s not exactly a widget, but a standalone graph drawing tool. It uses different algorithms to draw complex graphs. No idea which formats you can use to feed in the graphs. You need to check the thing out of the svn repository (look at the HOWTOs section for the source).

  6. Thomas Zander


    I suggest you hop on #classpath on IRC (freenode) where there are lots of very smart people that will be able to point you to the right place for such a widget.

  7. pakos


    what about qanava as a nice Qt4-based graph widget? (

  8. Amilcar Lucas

    Any plans to integrate it in KDevelop ?
    It would be a very nice plug-in.
    And you could benefit from the kdevelop/kde framework.

  9. Adam Burry

    John Lakos’ adep,cdep,ldep tools are available. I also have a module to generate .dot files from their output. If you can’t find these tools, but are interested, let me know and I’ll mail you a tarball.

  10. Alastair Mailer

    Hey; JUNG might do you, though it is a little overkill;

  11. Frans

    Doxygen already has this feature. It shows a graph over what headers that have been included directly or indirectly. Check out the INCLUDED_BY_GRAPH setting.

© 2024 TheBlindCow

Theme by Anders NorenUp ↑