다음을 통해 공유


/X   (Ignore Standard Include Paths)

OverviewHow Do ICompiler Options

This option prevents the compiler from searching for include files in directories specified in the PATH and INCLUDE environment variables. You can use this option with the Additional Include Directories (/Idirectory) option.

To find this option in the development environment, click Settings on the Project menu. Then click the C/C++ tab, and click Preprocessor in the Category box.

Example

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