2

Is there option (or some utility) to generate graph of dependencies for given file? I am trying to track down who brings an include file into compilation unit.

Anycorn
  • 50,217
  • 42
  • 167
  • 261
  • possible duplicate of [Tool to track #include dependencies](http://stackoverflow.com/questions/42308/tool-to-track-include-dependencies) – Josh Kelley Sep 25 '10 at 02:32

1 Answers1

2

Perhaps gcc -MM would work?

Joseph Quinsey
  • 9,553
  • 10
  • 54
  • 77