Hidden VC++ compiler switches: /showIncludes

This hidden Visual C++ compiler switch will print out the full path of files included via #includes. You add this option likewise…

image

Sample output…

1>  Note: including file:  C:Program Files (x86)Microsoft Visual Studio 10.0VCatlmfcincludeafxwin.h
1>  Note: including file:   C:Program Files (x86)Microsoft Visual Studio 10.0VCatlmfcincludeafx.h
1>  Note: including file:    C:Program Files (x86)Microsoft Visual Studio 10.0VCincludenew.h
1>  Note: including file:     C:Program Files (x86)Microsoft Visual Studio 10.0VCincludecrtdefs.h
1>  Note: including file:      C:Program Files (x86)Microsoft Visual Studio 10.0VCincludesal.h

….

3 thoughts on “Hidden VC++ compiler switches: /showIncludes

  1. Luckily it’s not hidden in VS2012. Configuration Properties > C/C++ > Advanced, “Show Includes”

Appreciate your comments...