Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

/X (Ignore Standard Include Paths)

Prevents the compiler from searching for include files in directories specified in the PATH and INCLUDE environment variables.


/X

You can use this option with the /I (Additional Include Directories) (/Idirectory) option.

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.

  2. Click the C/C++ folder.

  3. Click the Preprocessor property page.

  4. Modify the Ignore Standard Include Path property.

To set this compiler option programmatically

In the following command, /X tells the compiler to ignore locations specified by the PATH and INCLUDE environment variables, and /I specifies the directory in which to look for include files:

CL /X /I \ALT\INCLUDE MAIN.C

Community Additions

ADD
Show:
© 2015 Microsoft