tags:

views:

77

answers:

3

Is there a tool available which will take a set of source files and map (in graphic fashion) how they are linked via #include?

I would like to see where there are any circular references.

+5  A: 

I believe doxygen:

http://www.doxygen.org/

with graphviz installed:

http://www.graphviz.org/

will do it.

eruciform
Not that it easy to look at the output if the project is anything but trivial...
David Rodríguez - dribeas
+2  A: 

gcc(1) can produce dependency files. They are intended to be used by make(1), but they are relatively easy to parse. Use 'gcc -M -MF file' or 'gcc -MM -MF file'.

4dan
you can probably feed these to graphviz as well, since you want graphical output
eruciform
+1  A: 

Red Hat source navigator. Strongly recommended.

Red Hat source navigator

Vulcan Eager
I have to say this is a very strong tool. Thank you for pointing it out. Changed to accepted answer!
0A0D