Export (0) Print
Expand All
Expand Minimize

/showIncludes (List Include Files)

/showIncludes

The /showIncludes option causes the compiler to output a list of the include files. Nested include files are also displayed (files that are included from the files that you include).

When an include file is encountered during compilation, a message is output, for example:

Note: including file: d:\MyDir\include\stdio.h

Nested include files are indicated by an indentation, one space for each level of nesting. For example:

Note: including file: d:\temp\1.h
Note: including file:  d:\temp\2.h

In this case, 2.h was included from within 1.h, hence the indentation.

Note that /showIncludes emits to stderr, not stdout.

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
  2. Click the C/C++ folder.
  3. Click the Advanced property page.
  4. Modify the Show Includes property.

To set this compiler option programmatically

See ShowIncludes Property.

See Also

Compiler Options | Setting Compiler Options

Show:
© 2014 Microsoft