Sun Studio 12:C 用户指南

B.2.32 -H

打印到标准错误,每行一个错误,包含当前编译期间每个文件的路径名。这样打印的目的是显示包含在其他文件中的文件。

此处,程序 sample.c 包含文件 stdio.hmath.hmath.h 包含文件 floatingpoint.h,该文件本身还包含使用 sys/ieeefp.h 的函数:


% cc -H sample.c
    /usr/include/stdio.h
    /usr/include/math.h
        /usr/include/floatingpoint.h
            /usr/include/sys/ieeefp.h