/show include equivalent option in g++

Solution 1:

gcc -H

will print the names of header files as they are used.

Solution 2:

There's a variety of options for controlling this.

-MD will list files, -MMD will list non-system files as side effects of compilation

-M, -MM will generate lists instead of compiling.

-MQ, -MG, -MP and -MT generate makefile target fragments. -MF allows you to specify an output filename.