If you want to show the included headers, then whether this is supported and how to do it depends on the compiler.
eg.
C:\test> (g++ --help --verbose 2>&1) | find "header" -print-sysroot-headers-suffix Display the sysroot suffix used to find headers --sysroot=<directory> Use <directory> as the root directory for headers -H Print the name of header files as they are used -MG Treat missing header files as generated files -MM Like -M but ignore system header files -MMD Like -MD but ignore system header files -MP Generate phony targets for all headers -Wsystem-headers Do not suppress warnings from system headers -print-objc-runtime-info Generate C header of platform-specific features -ftree-ch Enable loop header copying on trees C:\test> (cl /? 2>&1) | find "include" /FI<file> name forced include file /U<name> remove predefined macro /u remove all predefined macros /I<dir> add to include search path /nologo suppress copyright message /showIncludes show include file names C:\test> _
In the above you can see the corresponding options for g ++ and Visual C ++, respectively.
Cheers and hth.,
- alf
Cheers and hth. - alf
source share