/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) option to specify an alternate path to the standard include files.
Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
Select the Configuration Properties > C/C++ > Preprocessor property page.
Modify the Ignore Standard Include Path property.
In the following command, /X
tells the compiler to ignore locations specified by the PATH
and INCLUDE
environment variables, and /I
specifies the directory to look in for include files:
CL /X /I \ALT\INCLUDE MAIN.C