Post-link decomposition of binary

John Love-Jensen
Tue Jan 21 12:44:00 GMT 2003

Hi Amos,

Does this work for you:
g++ -M foo.cpp >foo.d

The output (conventionally stowed in foo.d) is a Makefile friendly list of
header file dependencies.

This assumes you have the source code that you're trying to monitor, but if
you're doing a -save-temps and -fdump-translation-unit-all, I presume that's
a safe assumption.


More information about the Gcc-help mailing list